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,980 × 3
#> date count package
#> <date> <int> <chr>
#> 1 2025-06-28 85 lares
#> 2 2025-06-28 31935 dplyr
#> 3 2025-06-27 249 lares
#> 4 2025-06-27 46240 dplyr
#> 5 2025-06-26 237 lares
#> 6 2025-06-26 54021 dplyr
#> 7 2025-06-25 692 lares
#> 8 2025-06-25 50302 dplyr
#> 9 2025-06-24 588 lares
#> 10 2025-06-24 50015 dplyr
#> # ℹ 2,970 more rows
#>
#> $plot
#>
# }