check_downloads: retrieve the number of downloads of a package

Description Usage Arguments Examples

Description

this identifies the number of downloads of packages from the RStudio CRAN mirror; it can be used as a measure of package popularity and, by extension, a measure of the importance of a particular package having good engineering standards

Usage

1
check_downloads(packages = NULL, start_date, end_date, all = FALSE)

Arguments

packages

the name of a package, or a vector of multiple package names.

start_date

the start of the date range to cover.

end_date

the end of the date range to cover.

all

whether to retrieve data for all packages, rather than one specific package. Set to FALSE by default.

Examples

1
2
3
4
5
#ggplot2 downloads in March 2015
check_downloads("ggplot2", "2015-03-01", "2015-03-31")

#all package downloads on 1-2nd April
check_downloads(NULL, "2015-04-01", "2015-04-02", all = TRUE)

Ironholds/practice documentation built on May 7, 2019, 6:41 a.m.