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,720 × 3
#> date count package
#> <date> <int> <chr>
#> 1 2025-02-18 142 lares
#> 2 2025-02-18 64580 dplyr
#> 3 2025-02-17 160 lares
#> 4 2025-02-17 59072 dplyr
#> 5 2025-02-16 55 lares
#> 6 2025-02-16 35864 dplyr
#> 7 2025-02-15 88 lares
#> 8 2025-02-15 33384 dplyr
#> 9 2025-02-14 146 lares
#> 10 2025-02-14 53790 dplyr
#> # ℹ 2,710 more rows
#>
#> $plot
#>
# }