Visualize package downloads
spiral_pkg_downloads(
pkg,
from = "2012-10-01",
to = "last-day",
show_legend = TRUE
)
A single CRAN package name.
Starting date.
Ending date.
Whether to show the legend.
The cranlogs package is used to retrieve the download history from the Rstudio server.
# \donttest{
spiral_pkg_downloads("ggplot2")
#> 'unit_to_axis' is set to 'days'.
#> 'period' is set to 'years'.
#> When the period is year and the unit on axis is day, a spiral loop can
#> only represent 364 days (52 weeks) under default settings, which helps
#> to correspond weekdays between years, but 1 or 2 days from the current
#> year will be moved and accumulated to the next year. You can set
#> argument `normalize_year = TRUE` to enforce every spiral loop to
#> represent a complete year, but note you might not be able to perfectly
#> correspond weekdays between different years. Set argument `verbose =
#> FALSE` to turn off this message.
# }