pkgDownloadRank: What is a package's download rank?

View source: R/biocDownloadStats.R

pkgDownloadRankR Documentation

What is a package's download rank?

Description

This function uses available.packages to calculate the download rank percentile of a given package. It approximates what is observed in the Bioconductor landing page.

Usage

pkgDownloadRank(
  pkg,
  pkgType = c("software", "data-experiment", "workflows", "data-annotation"),
  version = BiocManager::version()
)

Arguments

pkg

character(1) The name of a Bioconductor package

pkgType

character(1) One of 'software', 'data-experiment', 'workflows', or 'data-annotation' (defaults to 'software')

version

(Optional) character(1) or package_version indicating the Bioconductor version (e.g., "3.8") for which repositories are required.

Value

The package's percentile rank, in terms of download statistics, and proportion in the name

Examples


## Percentile rank for BiocGenerics (top 1%)
pkgDownloadRank("BiocGenerics", "software")


seandavi/BiocPkgTools documentation built on April 28, 2024, 1:31 p.m.