Title: | Download Logs from the 'RStudio' 'CRAN' Mirror |
---|---|
Description: | 'API' to the database of 'CRAN' package downloads from the 'RStudio' 'CRAN mirror'. The database itself is at <http://cranlogs.r-pkg.org>, see <https://github.com/r-hub/cranlogs.app> for the raw 'API'. |
Authors: | Gábor Csárdi [aut, cre], R Consortium [fnd] |
Maintainer: | Gábor Csárdi <[email protected]> |
License: | MIT + file LICENSE |
Version: | 2.1.1.9000 |
Built: | 2025-02-01 02:40:43 UTC |
Source: | https://github.com/r-hub/cranlogs |
Daily package downloads from the RStudio CRAN mirror
cran_downloads(packages = NULL, when = c("last-day", "last-week", "last-month"), from = "last-day", to = "last-day")
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:
package |
The package. This column is missing if all packages were queried. |
date |
Day of the downloads, it is a Date object. |
count |
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
## 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)
## 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)
Top downloaded packages from the RStudio CRAN mirror
cran_top_downloads(when = c("last-day", "last-week", "last-month"), count = 10)
cran_top_downloads(when = c("last-day", "last-week", "last-month"), count = 10)
when |
|
count |
Number of packages to list. Note that the DB server lists only at most 100 packages. This number might change in the future. |
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.
A data frame with columns: rank
, package
,
count
, from
, to
.
Other CRAN downloads: cran_downloads
## Not run: ## Default is last day for which data is available. cran_top_downloads() ## Last week (6 days prior to the last day for which data is available) ## instead cran_top_downloads(when = "last-week") ## End(Not run)
## Not run: ## Default is last day for which data is available. cran_top_downloads() ## Last week (6 days prior to the last day for which data is available) ## instead cran_top_downloads(when = "last-week") ## End(Not run)
Create Markdown code for a cranlogs badge
cranlogs_badge(package_name, summary = c("last-month", "last-day", "last-week", "grand-total"), color = "blue")
cranlogs_badge(package_name, summary = c("last-month", "last-day", "last-week", "grand-total"), color = "blue")
package_name |
name of the package |
summary |
One of "last-day", "last-week", "last-month", "grand-total". |
color |
Either a hex color code or one of "brightgreen", "green", "yellowgreen", "yellow", "orange", "red", "lightgrey", "blue". |
The string to be copy-pasted to the README source.
cranlogs_badge("praise") cranlogs_badge("praise", summary = "grand-total") cranlogs_badge("praise", summary = "last-week", color = "orange") cranlogs_badge("praise", color = "ff8c69")
cranlogs_badge("praise") cranlogs_badge("praise", summary = "grand-total") cranlogs_badge("praise", summary = "last-week", color = "orange") cranlogs_badge("praise", color = "ff8c69")