Retrieves the download count for a given CRAN package from the CRAN logs API.
Usage
get_package_download(package_name, timeline = "grand-total")
Arguments
- package_name
A character string specifying the package name.
- timeline
A character string specifying the timeline ('last-month', or 'grand-total').
Value
An integer representing the total number of downloads.
Examples
if (FALSE) { # \dontrun{
get_package_download('ggplot2')
get_package_download('dplyr', 'last-month')
158300000
1700000
} # }