Track package downloads from Rstudio's CRAN mirror

Description

Results are cached in a local folder.

Usage

1
2
3
package_downloads(package_name, start = as.Date("2012-10-01"),
  end = Sys.Date() - 1,
  cache_dir = package_download_cache_dir(package_name), force = FALSE)

Arguments

package_name

Name of the package to get download statistics for

start

first day of requested download stats

end

last day of requested download stats

cache_dir

cache folder to use, defaults to one given by rappdirs

force

if TRUE, user is not prompted to confirm writing to hard disk (intended for non-interactive use) package_download_cache_dir (via rappdirs)

Examples

1
## Not run: package_download("package_downloads", start = as.Date("2015-09-01"))