View source: R/cranDownloads.R
cranDownloads | R Documentation |
Enhanced implementation of cranlogs::cran_downloads().
cranDownloads(packages = NULL, when = NULL, from = NULL, to = NULL,
check.package = TRUE, dev.mode = FALSE, fix.cranlogs = TRUE,
pro.mode = FALSE)
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 cranDownloads()'s plot method. |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.