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,638 × 3
#> date count package
#> <date> <int> <chr>
#> 1 2025-01-08 249 lares
#> 2 2025-01-08 52186 dplyr
#> 3 2025-01-07 132 lares
#> 4 2025-01-07 51918 dplyr
#> 5 2025-01-06 110 lares
#> 6 2025-01-06 47601 dplyr
#> 7 2025-01-05 28 lares
#> 8 2025-01-05 30352 dplyr
#> 9 2025-01-04 52 lares
#> 10 2025-01-04 31687 dplyr
#> # ℹ 2,628 more rows
#>
#> $plot
#>
# }