Title: | Computation and Visualization of Package Download Counts and Percentile Ranks |
---|---|
Description: | Compute and visualize the cross-sectional and longitudinal number and rank percentile of package downloads from Posit/RStudio's CRAN mirror. |
Authors: | lindbrook [aut, cre] |
Maintainer: | lindbrook <[email protected]> |
License: | GPL (>= 2) |
Version: | 0.9.4 |
Built: | 2024-11-20 17:22:01 UTC |
Source: | https://github.com/lindbrook/packagerank |
Compute and Visualize Package Download Counts and Percentile Ranks.
Download counts via cranDownloads().
Percentiles ranks of download counts via packageRank() and packageLog().
Download count inflation filters.
Availability of results via logInfo().
Reverse lookup of counts, ranks and percentile ranks.
Data fixes for early logs and a later instance of double/triple counting of R application downloads.
Note Sunday and Wednesday spikes in Windows R Application Nov 2022 - Mar 2023.
Country code top-level domains, memoization and internet connection timeout problem.
Maintainer: lindbrook [email protected]
Useful links:
Report bugs at https://github.com/lindbrook/packageRank/issues
From RStudio's CRAN Mirror http://cran-logs.rstudio.com/
annualDownloads(start.yr = 2013, end.yr = 2023)
annualDownloads(start.yr = 2013, end.yr = 2023)
start.yr |
Numeric or Integer. |
end.yr |
Numeric or Integer. |
A way around Gateway Timeout (HTTP 504). This takes a while since it computes each year separately.s
Annual/monthly package downloads from Bioconductor.
bioconductorDownloads(packages = NULL, from = NULL, to = NULL, when = NULL, unit.observation = "month")
bioconductorDownloads(packages = NULL, from = NULL, to = NULL, when = NULL, unit.observation = "month")
packages |
Character. Vector of package names. |
from |
Start date as |
to |
End date as |
when |
|
unit.observation |
"year" or "month". |
## Not run: # all packages bioconductorDownloads() # entire history bioconductorDownloads(packages = "clusterProfiler") # year-to-date bioconductorDownloads(packages = "clusterProfiler", when = "ytd") bioconductorDownloads(packages = "clusterProfiler", when = "year-to-date") # last 12 months bioconductorDownloads(packages = "clusterProfiler", when = "last-year") # from 2015 to current year bioconductorDownloads(packages = "clusterProfiler", from = 2015) # 2010 through 2015 (yearly) bioconductorDownloads(packages = "clusterProfiler", from = 2010, to = 2015, unit.observation = "year") # selected year (yearly) bioconductorDownloads(packages = "clusterProfiler", from = 2015, to = 2015) # selected year (monthly) bioconductorDownloads(packages = "clusterProfiler", from = "2015-01", to = "2015-12") # June 2014 through March 2015 bioconductorDownloads(packages = "clusterProfiler", from = "2014-06", to = "2015-03") ## End(Not run)
## Not run: # all packages bioconductorDownloads() # entire history bioconductorDownloads(packages = "clusterProfiler") # year-to-date bioconductorDownloads(packages = "clusterProfiler", when = "ytd") bioconductorDownloads(packages = "clusterProfiler", when = "year-to-date") # last 12 months bioconductorDownloads(packages = "clusterProfiler", when = "last-year") # from 2015 to current year bioconductorDownloads(packages = "clusterProfiler", from = 2015) # 2010 through 2015 (yearly) bioconductorDownloads(packages = "clusterProfiler", from = 2010, to = 2015, unit.observation = "year") # selected year (yearly) bioconductorDownloads(packages = "clusterProfiler", from = 2015, to = 2015) # selected year (monthly) bioconductorDownloads(packages = "clusterProfiler", from = "2015-01", to = "2015-12") # June 2014 through March 2015 bioconductorDownloads(packages = "clusterProfiler", from = "2014-06", to = "2015-03") ## End(Not run)
From bioconductor
bioconductorRank(packages = "monocle", date = "2019-01", count = "download")
bioconductorRank(packages = "monocle", date = "2019-01", count = "download")
packages |
Character. Vector of package name(s). |
date |
Character. Date. yyyy-mm |
count |
Character. "ip" or "download". |
An R data frame.
## Not run: bioconductorRank(packages = "cicero", date = "2019-09") ## End(Not run)
## Not run: bioconductorRank(packages = "cicero", date = "2019-09") ## End(Not run)
archive.pkg_ver
archive.pkg_ver.filtered
cran.pkg_ver
cran.pkg_ver.filtered
dl.ct
dl.ct2
pkg.ct
pkg.ct2
oct.data
cholera.data
ggplot2.data
VR.data
smpl
smpl.histories
smpl.archive
smpl.archive.histories
ccode.ct
crosstab_2019_10_01
percentiles
top.n.oct2019
top.n.jul2020
download.country
october.downloads
july.downloads
cran.pkgs.oct
arch.pkgs.oct
cran.pkgs.jul
arch.pkgs.jul
pkg.history
blog.data
blog.data
A list with 29 elements.
From RStudio's CRAN Mirror http://cran-logs.rstudio.com/
countryDistribution(date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, sequence.filter = FALSE, size.filter = FALSE, memoization = TRUE, multi.core = FALSE)
countryDistribution(date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, sequence.filter = FALSE, size.filter = FALSE, memoization = TRUE, multi.core = FALSE)
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
sequence.filter |
Logical. |
size.filter |
Logical. |
memoization |
Logical. Use memoization when downloading logs. |
multi.core |
Logical or Numeric. |
An R data frame.
From RStudio's CRAN Mirror http://cran-logs.rstudio.com/
countryPackage(country = "HK", date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, sequence.filter = FALSE, size.filter = FALSE, sort.count = TRUE, memoization = TRUE)
countryPackage(country = "HK", date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, sequence.filter = FALSE, size.filter = FALSE, sort.count = TRUE, memoization = TRUE)
country |
Character. country abbreviation. |
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
sequence.filter |
Logical. Set to FALSE. |
size.filter |
Logical. Set to FALSE. |
sort.count |
Logical. Sort by download count. |
memoization |
Logical. Use memoization when downloading logs. |
"US" outlier 10 min with all filters!
Document code for blog graph.
countsRanks(package = "cholera", size.filter = FALSE)
countsRanks(package = "cholera", size.filter = FALSE)
package |
Character. |
size.filter |
Logical. |
From Posit's CRAN Mirror http://cran-logs.rstudio.com/
cranDistribution(date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, multi.core = FALSE)
cranDistribution(date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, multi.core = FALSE)
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
memoization |
Logical. Use memoization when downloading logs. |
multi.core |
Logical or Numeric. |
An R data frame.
Enhanced implementation of cranlogs::cran_downloads().
cranDownloads(packages = NULL, when = NULL, from = NULL, to = NULL, check.package = TRUE, dev.mode = FALSE, fix.cranlogs = TRUE, pro.mode = FALSE)
cranDownloads(packages = NULL, when = NULL, from = NULL, to = NULL, check.package = TRUE, dev.mode = FALSE, fix.cranlogs = TRUE, pro.mode = FALSE)
packages |
A character vector, the packages to query,
or |
when |
|
from |
Start date as |
to |
End date as |
check.package |
Logical. Validate and "spell check" package. |
dev.mode |
Logical. Use validatePackage0() to scrape CRAN. |
fix.cranlogs |
Logical. Use RStudio logs to fix 8 dates with duplicated data in 'cranlogs' results. |
pro.mode |
Logical. Faster but fewer checks/features. Closer to cranlogs::cran_downloads() but with cranDownloads()'s plot method. |
## Not run: cranDownloads(packages = "HistData") cranDownloads(packages = "HistData", when = "last-week") cranDownloads(packages = "HistData", when = "last-month") # January 7 - 31, 2019 cranDownloads(packages = "HistData", from = "2019-01-07", to = "2019-01-31") # February through March 2019 cranDownloads(packages = "HistData", from = "2019-02", to = "2019-03") # 2024 year-to-date cranDownloads(packages = "HistData", from = 2024) ## End(Not run)
## Not run: cranDownloads(packages = "HistData") cranDownloads(packages = "HistData", when = "last-week") cranDownloads(packages = "HistData", when = "last-month") # January 7 - 31, 2019 cranDownloads(packages = "HistData", from = "2019-01-07", to = "2019-01-31") # February through March 2019 cranDownloads(packages = "HistData", from = "2019-02", to = "2019-03") # 2024 year-to-date cranDownloads(packages = "HistData", from = 2024) ## End(Not run)
Document code.
cranInflationPlot(dataset = "october")
cranInflationPlot(dataset = "october")
dataset |
Character. "october" or "july" for October 2019 or July 2020. |
https://cran.r-project.org/mirrors.html
cranMirrors(description = FALSE)
cranMirrors(description = FALSE)
description |
Logical. Mirror details. |
Compute Current Time in Selected Time Zone.
currentTime(tz = "Australia/Sydney")
currentTime(tz = "Australia/Sydney")
tz |
Character. Local time zone. See OlsonNames() or use Sys.timezone(). |
Compute Downloads by Country Code.
downloadsCountry(month_cran_log, multi.core = FALSE)
downloadsCountry(month_cran_log, multi.core = FALSE)
month_cran_log |
Object. |
multi.core |
Logical or Numeric. |
ip, small, sequence and size filters.
filteredDownloads(packages = "HistData", date = NULL, all.filters = TRUE, ip.filter = FALSE, small.filter = FALSE, sequence.filter = FALSE, size.filter = FALSE, check.package = TRUE, memoization = TRUE, multi.core = FALSE)
filteredDownloads(packages = "HistData", date = NULL, all.filters = TRUE, ip.filter = FALSE, small.filter = FALSE, sequence.filter = FALSE, size.filter = FALSE, check.package = TRUE, memoization = TRUE, multi.core = FALSE)
packages |
Character. Vector of package name(s). |
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
sequence.filter |
Logical. |
size.filter |
Logical. |
check.package |
Logical. Validate and "spell check" package. |
memoization |
Logical. Use memoization when downloading logs. |
multi.core |
Logical or Numeric. |
Document code for blog graph.
inflationPlot(package = "cholera", filter = "size", legend.loc = "topleft")
inflationPlot(package = "cholera", filter = "size", legend.loc = "topleft")
package |
Character. |
filter |
Character. Size, version, or size and version |
legend.loc |
Character. Location of legend. |
Document code.
inflationPlot2(dataset = "october", filter = "small", wed = FALSE, subtitle = TRUE, legend.loc = "topleft")
inflationPlot2(dataset = "october", filter = "small", wed = FALSE, subtitle = TRUE, legend.loc = "topleft")
dataset |
Character. "october" or "july" for October 2019 or July 2020. |
filter |
Character. "small", "ip", or "ip.small". |
wed |
Logical. |
subtitle |
Logical. |
legend.loc |
Character. Location of legend. |
From RStudio's CRAN Mirror http://cran-logs.rstudio.com/
ipCount(date = NULL, memoization = TRUE, sort.count = TRUE)
ipCount(date = NULL, memoization = TRUE, sort.count = TRUE)
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
memoization |
Logical. Use memoization when downloading logs. |
sort.count |
Logical. Sort by download count. |
From RStudio's CRAN Mirror http://cran-logs.rstudio.com/
ipDownloads(date = NULL, memoization = TRUE)
ipDownloads(date = NULL, memoization = TRUE)
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
memoization |
Logical. Use memoization when downloading logs. |
From RStudio's CRAN Mirror http://cran-logs.rstudio.com/
ipPackage(ip = 10, date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, sequence.filter = FALSE, size.filter = FALSE, sort.count = TRUE, memoization = TRUE, multi.core = FALSE)
ipPackage(ip = 10, date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, sequence.filter = FALSE, size.filter = FALSE, sort.count = TRUE, memoization = TRUE, multi.core = FALSE)
ip |
Numeric. ip_id. Positive integer. |
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
sequence.filter |
Logical. |
size.filter |
Logical. |
sort.count |
Logical. Sort by download count. |
memoization |
Logical. Use memoization when downloading logs. |
multi.core |
Logical or Numeric. |
ip = 10 is a tw top-level domain on 2020-07-09.
Compute Local Time from Coordinated Universal Time (UTC/GMT).
localTime(date = "2021-1-1", time = "12:00", tz = Sys.timezone())
localTime(date = "2021-1-1", time = "12:00", tz = Sys.timezone())
date |
Character. Date "yyyy-mm-dd". |
time |
Character. Local time "hh:mm" or "hh:mm:ss". |
tz |
Character. Local time zone. See OlsonNames() or use Sys.timezone(). |
RStudio CRAN Mirror Logs for previous day are posted at 17:00:00 UTC.
logDate(date = NULL, check.url = TRUE, tz = Sys.timezone(), upload.time = "17:00", warning.msg = TRUE, fix.date = TRUE)
logDate(date = NULL, check.url = TRUE, tz = Sys.timezone(), upload.time = "17:00", warning.msg = TRUE, fix.date = TRUE)
date |
Character. Date of desired log |
check.url |
Logical. |
tz |
Character. Time zone. See OlsonNames(). |
upload.time |
Character. UTC upload time for logs "hh:mm" or "hh:mm:ss". |
warning.msg |
Logical. TRUE uses warning() if the function returns the date of the previous available log. |
fix.date |
Logical. Fix date when directly accessing RStudio logs. |
An R date object.
Also checks availability of Posit/RStudio logs and 'cranlogs' data.
logInfo(details = FALSE, tz = Sys.timezone(), upload.time = "17:00")
logInfo(details = FALSE, tz = Sys.timezone(), upload.time = "17:00")
details |
Logical. Check available logs and results. |
tz |
Character. Local time zone. See OlsonNames() or use Sys.timezone(). |
upload.time |
Character. UTC upload time for logs "hh:mm" or "hh:mm:ss". |
Compute list of log files, 'lst', for packageVersionPercent().
monthlyLog(yr.mo = "2020-07")
monthlyLog(yr.mo = "2020-07")
yr.mo |
Character. "yyyy-mm". |
This is computationally intensive; you're downloading 30 odd files that are each around 50 MB in size (and creating a ~1.5 GB file)! Parallelization not practical; multiple attempts to connect to website causes problems. Truncates in-progress/future dates to yesterday's date. Automatically takes care of leap days (e.g., monthlyLog("2020-02").
From RStudio's CRAN Mirror http://cran-logs.rstudio.com/
packageCountry(packages = "cholera", date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, sequence.filter = FALSE, size.filter = FALSE, sort = TRUE, na.rm = FALSE, memoization = TRUE, check.package = TRUE, multi.core = FALSE)
packageCountry(packages = "cholera", date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, sequence.filter = FALSE, size.filter = FALSE, sort = TRUE, na.rm = FALSE, memoization = TRUE, check.package = TRUE, multi.core = FALSE)
packages |
Character. Vector of package name(s). |
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
sequence.filter |
Logical. |
size.filter |
Logical. |
sort |
Logical. Sort by download count. |
na.rm |
Logical. Remove NAs. |
memoization |
Logical. Use memoization when downloading logs. |
check.package |
Logical. Validate and "spell check" package. |
multi.core |
Logical or Numeric. |
Package Download Distribution.
packageDistribution(package = "HistData", date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, check.package = TRUE, multi.core = FALSE)
packageDistribution(package = "HistData", date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, check.package = TRUE, multi.core = FALSE)
package |
Character. Vector of package name(s). |
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
memoization |
Logical. Use memoization when downloading logs. |
check.package |
Logical. Validate and "spell check" package. |
multi.core |
Logical or Numeric. |
Date and version of all publications.
packageHistory(package = "cholera", check.package = TRUE)
packageHistory(package = "cholera", check.package = TRUE)
package |
Character. Vector of package names (including "R"). |
check.package |
Logical. Validate and "spell check" package. |
From RStudio's CRAN Mirror http://cran-logs.rstudio.com/
packageLog(packages = "cholera", date = NULL, all.filters = FALSE, ip.filter = FALSE, sequence.filter = FALSE, size.filter = FALSE, small.filter = FALSE, memoization = TRUE, check.package = TRUE)
packageLog(packages = "cholera", date = NULL, all.filters = FALSE, ip.filter = FALSE, sequence.filter = FALSE, size.filter = FALSE, small.filter = FALSE, memoization = TRUE, check.package = TRUE)
packages |
Character. Vector of package name(s). |
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
sequence.filter |
Logical. |
size.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
memoization |
Logical. Use memoization when downloading logs. |
check.package |
Logical. Validate and "spell check" package. |
An R data frame.
From Posit/RStudio's CRAN Mirror (CDN) http://cran-logs.rstudio.com/
packageRank(packages = "packageRank", date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, check.package = TRUE, rank.ties = TRUE, multi.core = FALSE)
packageRank(packages = "packageRank", date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, check.package = TRUE, rank.ties = TRUE, multi.core = FALSE)
packages |
Character. Vector of package name(s). |
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
memoization |
Logical. Use memoization when downloading logs. |
check.package |
Logical. Validate and "spell check" package. |
rank.ties |
Logical. TRUE uses competition ranking ("1224") for ties. FALSE uses nominal rank (no ties). |
multi.core |
Logical or Numeric. |
An R data frame.
## Not run: packageRank(packages = "cholera", date = "2020-01-01") packageRank(packages = c("h2o", "Rcpp", "rstan"), date = "2020-01-01") ## End(Not run)
## Not run: packageRank(packages = "cholera", date = "2020-01-01") packageRank(packages = c("h2o", "Rcpp", "rstan"), date = "2020-01-01") ## End(Not run)
packageRank::blog.data or recompute random sample of packages.
packageVersionPercent(lst, yr.mo = "2020-07", multi.core = FALSE)
packageVersionPercent(lst, yr.mo = "2020-07", multi.core = FALSE)
lst |
Object. List of CRAN download logs data frames. Use monthlyLog(). |
yr.mo |
Character. "yyyy-mo". packageVersionsPercent(NULL, yr.mo) |
multi.core |
Logical or Numeric. |
## Not run: # To resample and recompute, set lst to NULL, specify a yr.mo: packageVersionPercent(NULL, yr.mo = "2020-07") Otherwise, you must provide a pre-computed lst of logs. ## End(Not run)
## Not run: # To resample and recompute, set lst to NULL, specify a yr.mo: packageVersionPercent(NULL, yr.mo = "2020-07") Otherwise, you must provide a pre-computed lst of logs. ## End(Not run)
Plot method for annualDownloads().
## S3 method for class 'annualDownloads' plot(x, statistic = "count", pool = TRUE, log.y = FALSE, sep.y = FALSE, nrow = 3, smooth = TRUE, f = 1/4, span = 3/4, points = FALSE, line.col = "gray", ...)
## S3 method for class 'annualDownloads' plot(x, statistic = "count", pool = TRUE, log.y = FALSE, sep.y = FALSE, nrow = 3, smooth = TRUE, f = 1/4, span = 3/4, points = FALSE, line.col = "gray", ...)
x |
object. |
statistic |
Character. "count" or "percent". |
pool |
Logical. Pool annual data into single time series. |
log.y |
Logical. Base 10 logarithm of y-axis. |
sep.y |
Logical. Separate, independent y-scales for each panel. |
nrow |
Numeric. Number of rows for ggplot2 facets. |
smooth |
Logical. Add smoother (loess). |
f |
Numeric. Parameter for lowess. |
span |
Numeric. Smoothing parameter for geom_smooth(), which uses loess. |
points |
Logical. |
line.col |
Character. Color of line |
... |
Additional plotting parameters. |
Plot method for bioconductorDownloads().
## S3 method for class 'bioconductorDownloads' plot(x, graphics = NULL, count = "download", cumulative = FALSE, points = "auto", smooth = FALSE, f = 2/3, span = 3/4, se = FALSE, log.y = FALSE, r.version = FALSE, same.xy = TRUE, multi.plot = FALSE, legend.loc = "topleft", ...)
## S3 method for class 'bioconductorDownloads' plot(x, graphics = NULL, count = "download", cumulative = FALSE, points = "auto", smooth = FALSE, f = 2/3, span = 3/4, se = FALSE, log.y = FALSE, r.version = FALSE, same.xy = TRUE, multi.plot = FALSE, legend.loc = "topleft", ...)
x |
object. |
graphics |
Character. NULL, "base" or "ggplot2". |
count |
Character. "download" or "ip". |
cumulative |
Logical. Use cumulative counts. |
points |
Character of Logical. Plot points. "auto", TRUE, FALSE. "auto" for bioconductorDownloads(unit.observation = "month") with 24 or fewer months, points are plotted. |
smooth |
Logical. Add stats::lowess smoother. |
f |
Numeric. smoother window for stats::lowess(). For graphics = "base" only; c.f. stats::lowess(f) |
span |
Numeric. Smoothing parameter for geom_smooth(); c.f. stats::loess(span). |
se |
Logical. Works only with graphics = "ggplot2". |
log.y |
Logical. Logarithm of package downloads. |
r.version |
Logical. Add R release dates. |
same.xy |
Logical. Use same scale for multiple packages when graphics = "base". |
multi.plot |
Logical. Plot all data in a single window frame. |
legend.loc |
Character. |
... |
Additional plotting parameters. |
## Not run: plot(bioconductorDownloads()) plot(bioconductorDownloads(packages = "graph")) plot(bioconductorDownloads(packages = "graph", from = 2010, to = 2015)) plot(bioconductorDownloads(packages = "graph", from = "2014-06", to = "2015-03")) plot(bioconductorDownloads(packages = c("graph", "IRanges", "S4Vectors"), from = 2018)) ## End(Not run)
## Not run: plot(bioconductorDownloads()) plot(bioconductorDownloads(packages = "graph")) plot(bioconductorDownloads(packages = "graph", from = 2010, to = 2015)) plot(bioconductorDownloads(packages = "graph", from = "2014-06", to = "2015-03")) plot(bioconductorDownloads(packages = c("graph", "IRanges", "S4Vectors"), from = 2018)) ## End(Not run)
Plot method for bioconductorRank().
## S3 method for class 'bioconductorRank' plot(x, graphics = NULL, log.y = TRUE, ...)
## S3 method for class 'bioconductorRank' plot(x, graphics = NULL, log.y = TRUE, ...)
x |
An object of class "bioconductor_rank" created by |
graphics |
Character. "base" or "ggplot2". |
log.y |
Logical. Logarithm of package downloads. |
... |
Additional plotting parameters. |
A base R or ggplot2 plot.
Plot method for countryDistribution().
## S3 method for class 'countryDistribution' plot(x, N = 10, ...)
## S3 method for class 'countryDistribution' plot(x, N = 10, ...)
x |
An object of class "countryDistribution" created by |
N |
Integer. Top N countries. |
... |
Additional plotting parameters. |
Plot method for countsRanks().
## S3 method for class 'countsRanks' plot(x, ...)
## S3 method for class 'countsRanks' plot(x, ...)
x |
object. |
... |
Additional plotting parameters. |
Plot method for cranDistribution().
## S3 method for class 'cranDistribution' plot(x, type = "count", ...)
## S3 method for class 'cranDistribution' plot(x, type = "count", ...)
x |
An object of class "cranDistribution" created by |
type |
Character. "histogram" or "count". |
... |
Additional plotting parameters. |
A base R plot.
Plot method for cranDownloads().
## S3 method for class 'cranDownloads' plot(x, statistic = "count", graphics = "auto", points = "auto", log.y = FALSE, smooth = FALSE, se = FALSE, f = 1/3, span = 3/4, package.version = FALSE, r.version = FALSE, population.plot = FALSE, population.seed = as.numeric(Sys.Date()), multi.plot = FALSE, same.xy = TRUE, legend.location = "topleft", ip.legend.location = "topright", r.total = FALSE, dev.mode = FALSE, unit.observation = "day", multi.core = FALSE, ...)
## S3 method for class 'cranDownloads' plot(x, statistic = "count", graphics = "auto", points = "auto", log.y = FALSE, smooth = FALSE, se = FALSE, f = 1/3, span = 3/4, package.version = FALSE, r.version = FALSE, population.plot = FALSE, population.seed = as.numeric(Sys.Date()), multi.plot = FALSE, same.xy = TRUE, legend.location = "topleft", ip.legend.location = "topright", r.total = FALSE, dev.mode = FALSE, unit.observation = "day", multi.core = FALSE, ...)
x |
object. |
statistic |
Character. "count" or "cumulative". |
graphics |
Character. "auto", "base" or "ggplot2". |
points |
Character of Logical. Plot points. "auto", TRUE, FALSE. |
log.y |
Logical. Logarithm of package downloads. |
smooth |
Logical. Add smoother. |
se |
Logical. Works only with graphics = "ggplot2". |
f |
Numeric. smoother window for stats::lowess(). For graphics = "base" only; c.f. stats::lowess(f) |
span |
Numeric. Smoothing parameter for geom_smooth(); c.f. stats::loess(span). |
package.version |
Logical. Add latest package release dates. |
r.version |
Logical. Add R release dates. |
population.plot |
Logical. Plot population plot. |
population.seed |
Numeric. Seed for sample in population plot. |
multi.plot |
Logical. |
same.xy |
Logical. Use same scale for multiple packages when graphics = "base". |
legend.location |
Character. |
ip.legend.location |
Character. Location of in-progress legend. |
r.total |
Logical. |
dev.mode |
Logical. Use packageHistory0() to scrape CRAN. |
unit.observation |
Character. "year", "month", "week", or "day". |
multi.core |
Logical or Numeric. |
... |
Additional plotting parameters. |
A base R or ggplot2 plot.
## Not run: plot(cranDownloads(packages = c("Rcpp", "rlang", "data.table"))) plot(cranDownloads(packages = c("Rcpp", "rlang", "data.table"), when = "last-month")) plot(cranDownloads(packages = "R", from = "2020-01-01", to = "2020-01-01")) plot(cranDownloads(packages = "R", from = 2020)) ## End(Not run)
## Not run: plot(cranDownloads(packages = c("Rcpp", "rlang", "data.table"))) plot(cranDownloads(packages = c("Rcpp", "rlang", "data.table"), when = "last-month")) plot(cranDownloads(packages = "R", from = "2020-01-01", to = "2020-01-01")) plot(cranDownloads(packages = "R", from = 2020)) ## End(Not run)
Plot method for packageDistribution().
## S3 method for class 'packageDistribution' plot(x, ...)
## S3 method for class 'packageDistribution' plot(x, ...)
x |
An object of class "packageDistribution" created by |
... |
Additional plotting parameters. |
Plot method for packageRank() and packageRank0().
## S3 method for class 'packageRank' plot(x, graphics = NULL, log.y = TRUE, ...)
## S3 method for class 'packageRank' plot(x, graphics = NULL, log.y = TRUE, ...)
x |
An object of class "packageRank" created by |
graphics |
Character. "base" or "ggplot2". |
log.y |
Logical. Logarithm of package downloads. |
... |
Additional plotting parameters. |
A base R or ggplot2 plot.
## Not run: plot(packageRank(packages = "HistData", date = "2020-01-01")) plot(packageRank(packages = c("h2o", "Rcpp", "rstan"), date = "2020-01-01")) ## End(Not run)
## Not run: plot(packageRank(packages = "HistData", date = "2020-01-01")) plot(packageRank(packages = c("h2o", "Rcpp", "rstan"), date = "2020-01-01")) ## End(Not run)
Plot method for packageVersionPercent().
## S3 method for class 'packageVersionPercent' plot(x, ...)
## S3 method for class 'packageVersionPercent' plot(x, ...)
x |
An object of class "packageVersionPercent". |
... |
Additional plotting parameters. |
Plot method for weeklyDownloads().
## S3 method for class 'weeklyDownloads' plot(x, statistic = "percent", aggregation = "day", typical.value = "mean", nrow = 3L, ...)
## S3 method for class 'weeklyDownloads' plot(x, statistic = "percent", aggregation = "day", typical.value = "mean", nrow = 3L, ...)
x |
object. |
statistic |
Character. "count" or "percent". |
aggregation |
Character. "week" or "day". |
typical.value |
Character. "mean" or "median". |
nrow |
Numeric. Number of rows for ggplot2 facets. |
... |
Additional plotting parameters. |
## Not run: plot(weeklyDownloads()) plot(weeklyDownloads(n = 9), aggregation = "week") ## End(Not run)
## Not run: plot(weeklyDownloads()) plot(weeklyDownloads(n = 9), aggregation = "week") ## End(Not run)
Plot Compute Downloads by Country Code.
plotDownloadsCountry()
plotDownloadsCountry()
Plot Top N Downloads by Country Code.
plotTopCountryCodes(dataset = "october", second.place = FALSE)
plotTopCountryCodes(dataset = "october", second.place = FALSE)
dataset |
Character. |
second.place |
Logical. Annotate second place country. |
Print method for bioconductorDownloads().
## S3 method for class 'bioconductorDownloads' print(x, ...)
## S3 method for class 'bioconductorDownloads' print(x, ...)
x |
object. |
... |
Additional parameters. |
Print method for bioconductorRank().
## S3 method for class 'bioconductorRank' print(x, ...)
## S3 method for class 'bioconductorRank' print(x, ...)
x |
An object of class "bioconductor_rank" created by |
... |
Additional parameters. |
Print method for countryDistribution().
## S3 method for class 'countryDistribution' print(x, N = 10, ...)
## S3 method for class 'countryDistribution' print(x, N = 10, ...)
x |
object. |
N |
Integer. Top N countries. |
... |
Additional parameters. |
Print method for cranDistribution().
## S3 method for class 'cranDistribution' print(x, top.n = 20, ...)
## S3 method for class 'cranDistribution' print(x, top.n = 20, ...)
x |
object. |
top.n |
Numeric or Integer. |
... |
Additional parameters. |
Print method for cranDownloads().
## S3 method for class 'cranDownloads' print(x, ...)
## S3 method for class 'cranDownloads' print(x, ...)
x |
object. |
... |
Additional parameters. |
Print method for packageDistribution().
## S3 method for class 'packageDistribution' print(x, ...)
## S3 method for class 'packageDistribution' print(x, ...)
x |
An object of class "packageDistribution" created by |
... |
Additional parameters. |
Print method for packageRank().
## S3 method for class 'packageRank' print(x, ...)
## S3 method for class 'packageRank' print(x, ...)
x |
An object of class "packageRank" created by |
... |
Additional parameters. |
Query download count.
queryCount(count = 1, date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, multi.core = FALSE)
queryCount(count = 1, date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, multi.core = FALSE)
count |
Numeric or Integer. whole number. |
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
memoization |
Logical. Use memoization when downloading logs. |
multi.core |
Logical or Numeric. |
An R data frame.
Query package name.
queryPackage(packages = "packageRank", date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, check.package = TRUE, multi.core = FALSE)
queryPackage(packages = "packageRank", date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, check.package = TRUE, multi.core = FALSE)
packages |
Character.. |
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
memoization |
Logical. Use memoization when downloading logs. |
check.package |
Logical. Validate and "spell check" package. |
multi.core |
Logical or Numeric. |
An R data frame.
Percentile-rank query.
queryPercentile(percentile = 50, lo = NULL, hi = NULL, date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, multi.core = FALSE)
queryPercentile(percentile = 50, lo = NULL, hi = NULL, date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, multi.core = FALSE)
percentile |
Numeric. 50 uses median(). |
lo |
Integer. |
hi |
Integer |
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
memoization |
Logical. Use memoization when downloading logs. |
multi.core |
Logical or Numeric. |
An R data frame.
Rank query.
queryRank(num.rank = 1, rank.ties = FALSE, date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, multi.core = FALSE)
queryRank(num.rank = 1, rank.ties = FALSE, date = NULL, all.filters = FALSE, ip.filter = FALSE, small.filter = FALSE, memoization = TRUE, multi.core = FALSE)
num.rank |
Numeric or Integer. |
rank.ties |
Logical. TRUE uses ties. FALSE does not. |
date |
Character. Date. "yyyy-mm-dd". NULL uses latest available log. |
all.filters |
Logical. Master switch for filters. |
ip.filter |
Logical. |
small.filter |
Logical. TRUE filters out downloads less than 1000 bytes. |
memoization |
Logical. Use memoization when downloading logs. |
multi.core |
Logical or Numeric. |
An R data frame.
From RStudio's CRAN Mirror http://cran-logs.rstudio.com/
rLog(date = NULL)
rLog(date = NULL)
date |
Character. Date. "yyyy-mm-dd". NULL uses last available log. |
October 6-8, 2012; October 11, 2012; December 26-28; and January 1, 20113.
rstudio.logs
rstudio.logs
date
time
size
r_version
r_arch
r_os
package
version
country
ip_id
Summary method for bioconductorDownloads().
## S3 method for class 'bioconductorDownloads' summary(object, ...)
## S3 method for class 'bioconductorDownloads' summary(object, ...)
object |
Object. |
... |
Additional parameters. |
Summary method for bioconductorRank().
## S3 method for class 'bioconductorRank' summary(object, ...)
## S3 method for class 'bioconductorRank' summary(object, ...)
object |
Object. An object of class "bioconductor_rank" created by |
... |
Additional parameters. |
This is useful for directly accessing the data frame.
Five number (+ mean) summary of download count distribution
## S3 method for class 'cranDistribution' summary(object, ...)
## S3 method for class 'cranDistribution' summary(object, ...)
object |
An object of class "cranDistribution" created by |
... |
Additional plotting parameters. |
A base R vector
Summary method for cranDownloads().
## S3 method for class 'cranDownloads' summary(object, ...)
## S3 method for class 'cranDownloads' summary(object, ...)
object |
Object. |
... |
Additional parameters. |
This is useful for directly accessing the data frame.
Summary method for packageRank().
## S3 method for class 'packageRank' summary(object, ...)
## S3 method for class 'packageRank' summary(object, ...)
object |
Object. An object of class "packageRank" created by |
... |
Additional parameters. |
This is useful for directly accessing the data frame.
Compute Top N Downloads by Country Code.
topCountryCodes(month_cran_log, top.n = 5L, multi.core = FALSE)
topCountryCodes(month_cran_log, top.n = 5L, multi.core = FALSE)
month_cran_log |
Object. |
top.n |
Integer. |
multi.core |
Logical or Numeric. |
Compute Coordinated Universal Time (UTC/GMT) for Your Local Time.
utc()
utc()
Compute Coordinated Universal Time (UTC/GMT) for Specified Local Time.
utc0(date = "2020-01-01", time = "12:00:00", tz = "Europe/Vienna")
utc0(date = "2020-01-01", time = "12:00:00", tz = "Europe/Vienna")
date |
Character. Date "yyyy-mm-dd". |
time |
Character. Local time "hh:mm" or "hh:mm:ss". |
tz |
Character. Local time zone. See OlsonNames() or use Sys.timezone(). |
From RStudio's CRAN Mirror http://cran-logs.rstudio.com/
weeklyDownloads(start.yr = 2013, n = 50, multi.core = FALSE)
weeklyDownloads(start.yr = 2013, n = 50, multi.core = FALSE)
start.yr |
Numeric or Integer. |
n |
Numeric or Integer. Number of weeks (samples). |
multi.core |
Logical or Numeric. |