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: 3,132 × 3
#> date count package
#> <date> <int> <chr>
#> 1 2025-09-19 275 lares
#> 2 2025-09-19 61844 dplyr
#> 3 2025-09-18 291 lares
#> 4 2025-09-18 70537 dplyr
#> 5 2025-09-17 227 lares
#> 6 2025-09-17 81350 dplyr
#> 7 2025-09-16 288 lares
#> 8 2025-09-16 71348 dplyr
#> 9 2025-09-15 232 lares
#> 10 2025-09-15 69060 dplyr
#> # ℹ 3,122 more rows
#>
#> $plot
#>
# }