This function uses API of CRAN Logs to scrap the download logs of the package.

get_downloads(package)

Arguments

package

A character. Name of the package that is on CRAN.

Value

An object of package_downloads class.

Examples

library(deepdep) downloads <- get_downloads("ggplot2") downloads
#> last_day last_week last_month last_quarter last_half grand_total #> 1 63519 419446 1586998 4264327 7037518 32633422