Parse description and call inferPackageRecord
.
Produce a table parsing the Description file
- Package desc field
- Version desc field
- Repo from
getOption("repo")
- (optionnaly) GithubRepo desc field (Where does it come from ?
devtools::install_github
?). if found, then return the table with dcf field name = Package|source = "github"|version = Version|gh_repo = Githubrepo|gh_username=GithubUsername|gh_ref=GithubRef|gh_sha1=GithubSHA1|gh_subdir=GithubSubdir - if priority base return NULL
- if biocViews in desc field, then bioconductor pkg return name = Package|source = "Bioconductor"|version = Version
- if Repository desc field is CRAN (when ?) then return name = Package|source = "CRAN"|version = Version
- if InstallSource desc field is Source the return name = Package|source = "source"|version = Version
- if local developpement name = Package|source = "unknown"|version = Version
Packrat deals with CRAN like Repo : field source is CRAN, Bioconductor or pkgrecord inherit CustomCRANLikeRepository class or field source in DESCRIPTION pkgRecord$source
.
see packrat::installPkg
. pkgRecord = packrat:::lockInfo(project)
- Change libpaths
- Reinstall from source
- Can be overlay by env variable
R_PACKRAT_SRC_OVERLAY
inoverlaySourcePackages
. Find the use case
- Can be overlay by env variable