Download daily downloads stats from CRAN for any package, and plot.
It can also be used as an auxiliary function to plot
(cranlogs::cran_downloads
) results.
Examples
# \donttest{
cran_logs(c("lares", "dplyr"), from = "2021-05-31")
#> $df
#> # A tibble: 2,480 × 3
#> date count package
#> <date> <int> <chr>
#> 1 2024-10-21 146 lares
#> 2 2024-10-21 67825 dplyr
#> 3 2024-10-20 52 lares
#> 4 2024-10-20 37789 dplyr
#> 5 2024-10-19 67 lares
#> 6 2024-10-19 44967 dplyr
#> 7 2024-10-18 87 lares
#> 8 2024-10-18 60165 dplyr
#> 9 2024-10-17 161 lares
#> 10 2024-10-17 69598 dplyr
#> # ℹ 2,470 more rows
#>
#> $plot
#>
# }