Type: | Package |
Title: | BioConductor Package Downloads Stats |
Version: | 1.2.1 |
Date: | 2023-01-06 |
Author: | Marcelo Ponce [aut, cre] |
Maintainer: | Marcelo Ponce <m.ponce@utoronto.ca> |
Description: | Download stats reported from the BioConductor.org stats website. |
Suggests: | knitr, devtools, roxygen2, testthat, rmarkdown |
License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
URL: | https://github.com/mponce0/bioC.logs |
BugReports: | https://github.com/mponce0/bioC.logs/issues |
RoxygenNote: | 7.1.0 |
VignetteBuilder: | knitr |
NeedsCompilation: | no |
Packaged: | 2023-01-06 15:57:30 UTC; marcelo |
Repository: | CRAN |
Date/Publication: | 2023-01-06 22:00:02 UTC |
function that returns the date from one year ago
Description
function that returns the date from one year ago
Usage
Xyear.from.now()
function to download logs from bioConductor stats
Description
function to download logs from bioConductor stats
Usage
bioC_downloads(
pckg = NULL,
format = "bioC",
from = NULL,
to = NULL,
when = NULL,
verbose = TRUE
)
Arguments
pckg |
list of packages names |
format |
two options: "bioC" (default) will report the downloads as reported by bioconductor, ie. "Year Month Nb_of_distinct_IPs Nb_of_downloads"; or, "CRAN" will report as CRAN logs does, ie. "Date count package_Name" (in cranlogs 'Nb_of_downloads' are referred as 'count') |
from |
date in "MM-YYYY" format, specifying the initial date to be considered (optional argument) |
to |
date in "MM-YYYY" format, specifying the final date to be considered (optional argument) |
when |
optional argument, to specify pre-defined range dates; ie. 'ytd', 'year-to-date', 'last-year' |
verbose |
boolean flag indicating whether to print information about the processes... |
Value
a list containing a dataframe per package entered with columns as indicated by the format argument
Examples
bioC_downloads(c("ABarray","a4Classif"))
bioC_downloads("edgeR", verbose=FALSE)
edgeR.logs <- bioC_downloads("edgeR", format="CRAN")
edgeR.logs <- bioC_downloads("edgeR", when='last-year', format='bioC')
edgeR.logs <- bioC_downloads("edgeR", to='03-2015', format='bioC')
edgeR.logs <- bioC_downloads("edgeR", from='03-2015', format='bioC')
edgeR.logs <- bioC_downloads("edgeR", from='03-2015',to='05-2016', format='bioC')
function to check date format for "MM-YYYY"
Description
function to check date format for "MM-YYYY"
Usage
checkDate(date.candidate)
Arguments
date.candidate |
date candidate |
function to check dates, ie that t0<t1 and t0!=t1
Description
function to check dates, ie that t0<t1 and t0!=t1
Usage
checkDates(t0, t1)
Arguments
t0 |
initial date |
t1 |
final date |
Value
a list with t0 being [[1]] and t1 being [[2]]
function to check dates, ie that t0<t1 and t0 and t1 are in MM-YYYY format
Description
function to check dates, ie that t0<t1 and t0 and t1 are in MM-YYYY format
Usage
checkValidDates(t0, t1)
Arguments
t0 |
initial date |
t1 |
final date |
Value
a list with t0 being [[1]] and t1 being [[2]]
function that returns the number of dates in a given date
Description
function that returns the number of dates in a given date
Usage
daysInMonth(d = Sys.Date())
Arguments
d |
string containing a date in YYYY-MM-DD format |
Value
number of days in the given the date
function that returns the number of dates in a given month-year
Description
function that returns the number of dates in a given month-year
Usage
last.day.month(MonthYear)
Arguments
MonthYear |
string containing month and year, ie. MM-YYYY |
Value
number of days –as characters– in the given month-year
function that returns the range dates for the last year
Description
function that returns the range dates for the last year
Usage
lst.year()
function that provides a "beginning of times" default date
Description
function that provides a "beginning of times" default date
Usage
origin.of.times()
function that returns the current date
Description
function that returns the current date
Usage
today()
function that returns the date from one year ago
Description
function that returns the date from one year ago
Usage
year.from.now()
function that returns the range dates for the period year-to-date
Description
function that returns the range dates for the period year-to-date
Usage
year.to.date()