Visualize package downloads

spiral_pkg_downloads(
  pkg,
  from = "2012-10-01",
  to = "last-day",
  show_legend = TRUE
)

Arguments

pkg

A single CRAN package name.

from

Starting date.

to

Ending date.

show_legend

Whether to show the legend.

Details

The cranlogs package is used to retrieve the download history from the Rstudio server.

Examples

# \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.

# }