Find the Location of an R Package's Code

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.


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"

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("codewhere")

0.1.1 by Nic Crane, 2 years ago


https://thisisnic.github.io/codewhere/, https://github.com/thisisnic/codewhere/


Report a bug at https://github.com/thisisnic/codewhere/issues


Browse source code at https://github.com/cran/codewhere


Authors: Nic Crane [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports httr

Suggests httptest, testthat


See at CRAN