Title: | Use templates to create package stats reports |
---|---|
Description: | Create package reports as RMarkdown documents. Rendering RMarkdown documents will provide a brief summary of package statistics. A starting date must be specified. |
Authors: | Marcel Ramos [aut, cre] , Vincent Carey [aut], Lori Shepherd [aut], Martin Morgan [aut] |
Maintainer: | Marcel Ramos <[email protected]> |
License: | Artistic-2.0 |
Version: | 0.0.15 |
Built: | 2024-10-26 05:27:21 UTC |
Source: | https://github.com/Bioconductor/BiocPkgStats |
Plot the download activity for a package
downloadTrend(package, since_date, include_recent = FALSE)
downloadTrend(package, since_date, include_recent = FALSE)
package |
|
since_date |
|
include_recent |
|
if (interactive()) { downloadTrend("MultiAssayExperiment", "2017-05-01") downloadTrend("cBioPortalData", "2017-05-01") downloadTrend("RaggedExperiment", "2017-05-01") downloadTrend("SingleCellMultiModal", "2017-05-01") downloadTrend("curatedTCGAData", "2017-05-01") # low downloads downloadTrend("TENxIO", "2017-05-01") downloadTrend("terraTCGAdata", "2017-05-01") }
if (interactive()) { downloadTrend("MultiAssayExperiment", "2017-05-01") downloadTrend("cBioPortalData", "2017-05-01") downloadTrend("RaggedExperiment", "2017-05-01") downloadTrend("SingleCellMultiModal", "2017-05-01") downloadTrend("curatedTCGAData", "2017-05-01") # low downloads downloadTrend("TENxIO", "2017-05-01") downloadTrend("terraTCGAdata", "2017-05-01") }
The function compiles statistics for Bioconductor packages that
have GitHub repositories. It uses functionality in BiocPkgTools
to
extract commit and issue history. A token is required to access the
GitHub commit and issue history.
generateReport(packages, gh_org, since_date, outdir = ".", overwrite = FALSE)
generateReport(packages, gh_org, since_date, outdir = ".", overwrite = FALSE)
packages |
|
gh_org |
|
since_date |
|
outdir |
|
overwrite |
|
Note that packages must be installed in order to determine the
package type via the biocViews
field.
The package uses the gh
package calls from BiocPkgTools
. Users must
authenticate with a GitHub Fine Grained Token and add the token using
gitcreds::gitcreds_set()
.
if (interactive()) { generateReport( c( "MultiAssayExperiment", "cBioPortalData", "SingleCellMultiModal" ), gh_org = "waldronlab", since_date = "2017-05-01", overwrite = TRUE ) }
if (interactive()) { generateReport( c( "MultiAssayExperiment", "cBioPortalData", "SingleCellMultiModal" ), gh_org = "waldronlab", since_date = "2017-05-01", overwrite = TRUE ) }
The function compiles statistics for Bioconductor packages that
have GitHub repositories. It uses functionality in BiocPkgTools
to
extract commit and issue history. A token is required to access the
GitHub commit and issue history. See the .token
argument in ?gh::gh
for details on its use.
generateTable(packages, gh_org, since_date)
generateTable(packages, gh_org, since_date)
packages |
|
gh_org |
|
since_date |
|
Note that pull requests are a type of "issue" on GitHub; therefore, issues
and pull requests are combined when reporting the number of closed issues
since a specific date. For more information on how the queries are preformed,
see the GitHub API documentation for the /repos/{owner}/{repo}/issues
endpoint at https://docs.github.com/en/rest/issues and the gh
R
package. The following list describes each column in the returned
data.frame
:
download.rank: The percentile rank of the package in its respective repository, e.g., software, data-experiment etc.
avg.downloads: The average number of monthly downloads from distinct IP addresses since the given date
med.downloads: The median number of montly downloads from distinct IP addresses since the given date
num.revdeps: The number of "all" reverse dependencies including "Depends", "Imports", "LinkingTo", "Suggests", and "Enhances"
issues.since: The number of closed issues (including pull requests) since the date given
commits.since: The number of commits since the given date
A data.frame
of metrics, see the details
section for specifics
if (interactive()) { generateTable( packages = c( "MultiAssayExperiment", "cBioPortalData", "SingleCellMultiModal" ), gh_org = "waldronlab", since_date = "2019-05-01" ) }
if (interactive()) { generateTable( packages = c( "MultiAssayExperiment", "cBioPortalData", "SingleCellMultiModal" ), gh_org = "waldronlab", since_date = "2019-05-01" ) }
Gather support site statistics for a given period
supportSiteStats(from = "2021-01-01", to = "2021-12-31") ## S3 method for class 'bioc_support_stats' print(x, ...)
supportSiteStats(from = "2021-01-01", to = "2021-12-31") ## S3 method for class 'bioc_support_stats' print(x, ...)
from |
|
to |
|
x |
|
... |
Additional arguments to the print method. Not used. |
a bioc_support_stats
list class with components userdiff,
toplevdiff, questdiff, and respdiff
Vincent J. Carey
if (interactive()) { supportSiteStats() }
if (interactive()) { supportSiteStats() }