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,692 × 3
#> date count package
#> <date> <int> <chr>
#> 1 2025-02-04 157 lares
#> 2 2025-02-04 61624 dplyr
#> 3 2025-02-03 167 lares
#> 4 2025-02-03 55610 dplyr
#> 5 2025-02-02 65 lares
#> 6 2025-02-02 29393 dplyr
#> 7 2025-02-01 69 lares
#> 8 2025-02-01 46141 dplyr
#> 9 2025-01-31 159 lares
#> 10 2025-01-31 60365 dplyr
#> # ℹ 2,682 more rows
#>
#> $plot
#>
# }