cranDownloads {packageRank} | R Documentation |
Daily package downloads from the RStudio CRAN mirror.
Description
Enhanced implementation of cranlogs::cran_downloads().
Usage
cranDownloads(packages = NULL, when = NULL, from = NULL, to = NULL,
check.package = TRUE, dev.mode = FALSE, fix.cranlogs = TRUE,
pro.mode = FALSE)
Arguments
packages |
A character vector, the packages to query,
or |
when |
|
from |
Start date as |
to |
End date as |
check.package |
Logical. Validate and "spell check" package. |
dev.mode |
Logical. Use validatePackage0() to scrape CRAN. |
fix.cranlogs |
Logical. Use RStudio logs to fix 8 dates with duplicated data in 'cranlogs' results. |
pro.mode |
Logical. Faster but fewer checks/features. Closer to cranlogs::cran_downloads() but with cranDownload()'s plot method. |
Examples
## Not run:
cranDownloads(packages = "HistData")
cranDownloads(packages = "HistData", when = "last-week")
cranDownloads(packages = "HistData", when = "last-month")
# January 7 - 31, 2019
cranDownloads(packages = "HistData", from = "2019-01-07", to = "2019-01-31")
# February through March 2019
cranDownloads(packages = "HistData", from = "2019-02", to = "2019-03")
# 2024 year-to-date
cranDownloads(packages = "HistData", from = 2024)
## End(Not run)
[Package packageRank version 0.9.1 Index]