Description Usage Arguments Details Value See Also Examples
Daily package downloads from the RStudio CRAN mirror
1 2 | cran_downloads(packages = NULL, when = c("last-day", "last-week",
"last-month"), from = "last-day", to = "last-day")
|
packages |
A character vector, the packages to query,
or |
when |
|
from |
Start date, in |
to |
End date, in |
last-day
is the last day for which data is available,
last-week
is from 6 days prior to that last day with data,
last-month
is from 29 days prior to that last day with data.
0 counts can be due to the non-availability of data on the RStudio server for that day.
For packages a data frame with columns:
|
The package. This column is missing if all packages were queried. |
|
Day of the downloads, it is a Date object. |
|
Download count. |
For downloads of R, there are also columns for the operating
system (os
) and the R version (version
).
Other CRAN downloads: cran_top_downloads
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
## Default is last day for which data is available.
cran_downloads()
## All downloads for 'dplyr' in the last day for which data is available.
cran_downloads(packages = "dplyr")
## Daily downloads for 'igraph' last week
## (6 days prior to the last day for which data is available)
cran_downloads(packages = "igraph", when = "last-week")
## Downloads in the specified time interval
cran_downloads(from = "2014-06-30", to = "2014-08-08")
## Multiple packages
cran_downloads(packages = c("ggplot2", "plyr", "dplyr"))
## R downloads
cran_downloads("R")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.