get_package_download {risk.assessr} | R Documentation |
Get CRAN Package Download Count
Description
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
## Not run:
total_download_result <- get_package_download('ggplot2')
month_download_result <- get_package_download('dplyr', 'last-month')
## End(Not run)
[Package risk.assessr version 2.0.0 Index]