Learn R Programming

lares (version 5.2.13)

cran_logs: Download and plot daily downloads of CRAN packages

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

cran_logs(
  input = "lares",
  from = Sys.Date() - 31,
  to = Sys.Date() - 1,
  type = "daily",
  plot = TRUE
)

Value

List with data.frame and plot if 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.

type

Character. Any of: "daily" or "total".

plot

Boolean. Create a plot?

Examples

Run this code
# \donttest{
cran_logs(c("lares", "dplyr"), from = "2021-05-31")
# }

Run the code above in your browser using DataLab