Skip to contents
DESCRIPTIONFileVersionV()
DESCRIPTIONFileOtherV()
dlGitHubDESCRIPTION()
GitHub package tools
parseGitHub()
Parse a github package specification
Require()
Install()
Require: Installing and Loading R Packages for Reproducible Workflows
RequireOptions()
getRequireOptions()
Require
options
availablePackagesOverride()
Create a custom "available.packages" object
availableVersionOK()
Needs VersionOnRepos
, versionSpec
and inequality
columns
dlArchiveVersionsAvailable()
available.packagesCached()
Available and archived versions
cacheDefaultDir()
The default cache directory for Require Cache
cacheDir()
cachePkgDir()
Path to (package) cache directory
cacheGetOptionCachePkgDir()
Get the option for Require.cachePkgDir
cachePurge()
purgeCache()
Purge everything in the Require cache
checkLibPaths()
Creates the directories, and adds version number
checkPath()
Check directory path
cacheClearPackages()
clearRequirePackageCache()
Clear Require Cache elements
compareVersion2()
Compare package versions
dealWithMissingLibPaths()
Only checks for deprecated libPath argument (singular)
detachAll()
Detach and unload all packages
doLibPaths()
Deals with missing libPaths arg, and takes first
.downloadFileMasterMainAuth()
GITHUB_PAT-aware and main
-master
-aware download from GitHub
.installed.pkgs()
Partial alternative (faster) to installed.packages
envPkgCreate()
1st level –> create the .pkgEnv object in Require
envPkgDepDESCFileCreate()
3rd level for DESCRIPTIONFile
envPkgDepDepsCreate()
3rd level for deps #############################################
extractPkgName()
extractVersionNumber()
extractInequality()
extractPkgGitHub()
Extract info from package character strings
getDeps()
The packages
argument may have up to 4 pieces of information for GitHub packages: name, repository, branch, version. For CRAN-alikes, it will only be 2 pieces: name, version. There can also be an inequality or equality, if there is a version.
invertList()
Invert a 2-level list
joinToAvailablePackages()
Join a data.table with a Package
column to available.packages
linkOrCopy()
fileRenameOrMove()
Create link to file, falling back to making a copy if linking fails.
masterMainToHead()
This converts master or main to HEAD for a git repo
messageDF()
messageVerbose()
messageVerboseCounter()
Use message to print a clean square data structure
modifyList2()
modifyList3()
modifyList
for multiple lists
normPath()
Normalize filepath
paddedFloatToChar()
Convert numeric to character with padding
pakEnv()
2nd level
pkgDepTopoSort()
pkgDep2()
pkgDep()
Reverse package depends
pkgDepEnv()
2nd level
pkgDepIfDepRemoved()
Package dependencies when one or more packages removed
pkgSnapshot()
pkgSnapshot2()
Take a snapshot of all the packages and version numbers
rmBase()
Recursive function to remove .basePkgs
rversions
R versions
setLibPaths()
Set .libPaths
setLinuxBinaryRepo()
Setup for binary Linux repositories
setdiffNamed()
Like setdiff
, but takes into account names
setup()
setupOff()
Setup a project library, cache, options
sourcePkgs()
A list of R packages that should likely be installed from Source, not Binary
splitKeepOrderAndDTIntegrity()
split
for a data.table that keeps integrity of a column of lists of data.table objects
sysInstallAndDownload()
download.files or install.packages in a separate process
tempdir2()
Make a temporary (sub-)directory
tempfile2()
Make a temporary subfile in a temporary (sub-)directory
trimVersionNumber()
Trim version number off a compound package name
updatePackages()
Update installed packages with latest available versions