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,002 × 3
#> date count package
#> <date> <int> <chr>
#> 1 2025-07-09 128 lares
#> 2 2025-07-09 49445 dplyr
#> 3 2025-07-08 187 lares
#> 4 2025-07-08 49596 dplyr
#> 5 2025-07-07 152 lares
#> 6 2025-07-07 47771 dplyr
#> 7 2025-07-06 62 lares
#> 8 2025-07-06 28552 dplyr
#> 9 2025-07-05 112 lares
#> 10 2025-07-05 27036 dplyr
#> # ℹ 2,992 more rows
#>
#> $plot
#>
# }