cran_logs: Download and plot daily downloads of CRAN packages

Description Usage Arguments Value Examples

View source: R/cran.R

Description

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.

Usage

1
2
3
4
5
6
cran_logs(
  input = "lares",
  from = Sys.Date() - 31,
  to = Sys.Date() - 1,
  plot = TRUE
)

Arguments

input

Character vector with package names or data.frame product of cranlogs::cran_downloads.

from, to

Dates. Range of dates to fetch downloads metrics.

plot

Boolean. Create a plot?

Value

List with data.frame and plot if plot=TRUE.

Examples

1
cran_logs(c("lares", "dplyr"), from = "2021-05-31")

lares documentation built on Sept. 10, 2021, 5:06 p.m.