Description
Find the Location of an R Package's Code.
Description
Find the location of the code for an R package based on the package's name or string representation. Checks on 'CRAN' based on information in the 'URL' field or 'BioConductor' and 'GitHub' based on constructing a URL, and verifies all paths via testing for a successful response. This can be useful when automating static code analysis based on a list of package names, and similar tasks.
README.md
codewhere
The goal of codewhere is to help you find the location of the code associated with an R package.
Installation
You can install the development version of codewhere from GitHub with:
# install.packages("devtools")
devtools::install_github("thisisnic/codewhere")
Example
library(codewhere)
code_where("dplyr")
#> [1] "https://github.com/tidyverse/dplyr"
code_where("GenomeInfoDb", package_type = "bioc")
#> [1] "https://code.bioconductor.org/browse/GenomeInfoDb"