cran_downloads2: Daily package downloads from the RStudio CRAN mirror.
Description
S3 implementation of cranlogs::cran_downloads().
Usage
cran_downloads2(packages = NULL, when = c("last-day", "last-week",
"last-month"), from = "last-day", to = "last-day")
Arguments
packages
A character vector, the packages to query,
or NULL for a sum of downloads for all packages.
Alternatively, it can also be "R", to query downloads
of R itself. "R" cannot be mixed with packages.
when
last-day, last-week or last-month.
If this is given, then from and to are ignored.
from
Start date, in yyyy-mm-dd format, or
last-day. It is ignored if when is given.
to
End date, in yyyy-mm-dd format, or
last-day. It is ignored if when is given.
# NOT RUN {cran_downloads2(packages = "HistData", from = "2019-01-01", to = "2019-01-01")
cran_downloads2(packages = c("Rcpp", "rlang"), when = "last-week")
# }