Package: switchr 0.14.5.1

switchr: Installing, Managing, and Switching Between Distinct Sets of Installed Packages

Provides an abstraction for managing, installing, and switching between sets of installed R packages. This allows users to maintain multiple package libraries simultaneously, e.g. to maintain strict, package-version-specific reproducibility of many analyses, or work within a development/production release paradigm. Introduces a generalized package installation process which supports multiple repository and non-repository sources and tracks package provenance.

Authors:Gabriel Becker[aut, cre]

switchr_0.14.5.1.tar.gz
switchr_0.14.5.1.zip(r-4.5)switchr_0.14.5.1.zip(r-4.4)switchr_0.14.5.1.zip(r-4.3)
switchr_0.14.5.1.tgz(r-4.4-any)switchr_0.14.5.1.tgz(r-4.3-any)
switchr_0.14.5.1.tar.gz(r-4.5-noble)switchr_0.14.5.1.tar.gz(r-4.4-noble)
switchr_0.14.5.1.tgz(r-4.4-emscripten)switchr_0.14.5.1.tgz(r-4.3-emscripten)
switchr.pdf |switchr.html
switchr/json (API)
NEWS

# Install 'switchr' in R:
install.packages('switchr', repos = c('https://gmbecker.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/gmbecker/switchr/issues

On CRAN:

6.49 score 59 stars 52 scripts 440 downloads 2 mentions 90 exports 3 dependencies

Last updated 2 years agofrom:4d4e72f200. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-winOKOct 31 2024
R-4.5-linuxOKOct 31 2024
R-4.4-winOKOct 31 2024
R-4.4-macOKOct 31 2024
R-4.3-winOKOct 31 2024
R-4.3-macOKOct 31 2024

Exports:.libPaths2addPkgarchive_retriesarchive_retries<-archive_timingarchive_timing<-BiocDevelBiocReleasebiocReposForVersBiocSVNManifestBiocVersbranchcheckIsPkgDircranPkgVersManifestcurrentCompEnvdefaultReposdep_reposdep_repos<-dl_methoddl_method<-errorOrNonZerofileFromFileURLfindNewestPkgIndsfindNewestPkgRowsfindPkgDirfindPkgVersionInRepoflushSessionfull_libpathsgetPkgDirGithubManifestgotoVersCommitgraceful_inetheadinstall_packageslazyRepolibManifestlibrary_pathsloadGRANloadManifestlocatePkgVersionlocationlogfunlogfun<-makeBiocSVNURLmakeFileURLmakeLibraryCtxmakeManifestmakePkgCheckoutmakePkgDirmakeSeedManmakeSourcemanifestmanifest_dfmanifest_df<-manifest<-manifestFromCheckoutDirManifestRownormalizePath2notracknrowpackagesparseSessionInfoStringPkgManifestpkgnamepublishManifestremoveLibRepoSubsetrVersionManifestSessionManifestsh_init_scriptsh_init_script<-shell_timingshell_timing<-subdirsubdir<-switchBackswitchDepsswitchrBaseDirSwitchrCtxswitchrDontUnloadswitchrManifestswitchrNoUnloadSwitchrParamswitchTosystem_w_inittailupdate_PACKAGESversions_dfversions_df<-warning2

Dependencies:bitopsRCurlRJSONIO

switchr basics2

Rendered fromswitchrvign.Rnwusingutils::Sweaveon Oct 31 2024.

Last update: 2020-01-23
Started: 2015-05-13

Readme and manuals

Help Manual

Help pageTopics
.libpaths2.libPaths2
addPkgaddPkg addPkg,PkgManifest addPkg,PkgManifest-method addPkg,SessionManifest addPkg,SessionManifest-method
archive_retriesarchive_retries archive_retries,SwitchrParam archive_retries,SwitchrParam-method archive_retries<- archive_retries<-,SwitchrParam archive_retries<-,SwitchrParam-method
archive_timingarchive_timing archive_timing,SwitchrParam archive_timing,SwitchrParam-method archive_timing<- archive_timing<-,SwitchrParam archive_timing<-,SwitchrParam-method
BiocDevelBiocDevel
BiocReleaseBiocRelease
biocReposForVersbiocReposForVers
DEPCRECATED - Create a manifest of Bioc SVN locationsBiocSVNManifest
BiocVersBiocVers
branchbranch branch,PkgSource branch,PkgSource-method branch<- branch<-,PkgSource branch<-,PkgSource-method
cmethodsc,PkgManifest-method c,SessionManifest-method
Check if a directory contains package sourcescheckIsPkgDir
cranPkgVersManifestcranPkgVersManifest
currentCompEnvcurrentCompEnv
defaultReposdefaultRepos
dep_reposdep_repos dep_repos,PkgManifest dep_repos,PkgManifest-method dep_repos,SessionManifest dep_repos,SessionManifest-method dep_repos<- dep_repos<-,PkgManifest dep_repos<-,PkgManifest-method dep_repos<-,SessionManifest dep_repos<-,SessionManifest-method
dl_methoddl_method dl_method,SwitchrParam dl_method,SwitchrParam-method dl_method<- dl_method<-,SwitchrParam dl_method<-,SwitchrParam-method
Identify error states from R or external programserrorOrNonZero
Get path from file URLfileFromFileURL
Find newest packages in a package info data.framefindNewestPkgInds findNewestPkgRows
Find a package directory within an SCM checkoutfindPkgDir
findPkgVersionInRepofindPkgVersionInRepo findPkgVersionInRepo,character findPkgVersionInRepo,character-method findPkgVersionInRepo,NULL findPkgVersionInRepo,NULL-method
flushSessionflushSession
full_libpathsfull_libpaths full_libpaths,SwitchrCtx full_libpaths,SwitchrCtx-method
Construct pockage directory pathgetPkgDir
GithubManifestGithubManifest
gotoVersCommitgotoVersCommit gotoVersCommit,character,BiocSource gotoVersCommit,character,BiocSource-method gotoVersCommit,character,CRANSource gotoVersCommit,character,CRANSource-method gotoVersCommit,character,GitSource gotoVersCommit,character,GitSource-method gotoVersCommit,character,SVNSource gotoVersCommit,character,SVNSource-method
Internal internet harnessgraceful_inet warning2
Head and tail operations on manifestshead head,PkgManifest head,PkgManifest-method head,SessionManifest head,SessionManifest-method tail tail,PkgManifest tail,PkgManifest-method tail,SessionManifest tail,SessionManifest-method
install_packagesinstall_packages install_packages,character,character install_packages,character,character-method install_packages,character,missing install_packages,character,missing-method install_packages,character,PkgManifest install_packages,character,PkgManifest-method install_packages,character,SessionManifest install_packages,character,SessionManifest-method install_packages,SessionManifest,ANY install_packages,SessionManifest,ANY-method
lazyRepolazyRepo lazyRepo,character,PkgManifest lazyRepo,character,PkgManifest-method lazyRepo,character,SessionManifest lazyRepo,character,SessionManifest-method lazyRepo,PkgManifest,ANY lazyRepo,PkgManifest,ANY-method lazyRepo,SessionManifest,ANY lazyRepo,SessionManifest,ANY-method
libManifestlibManifest libManifest,character libManifest,character-method libManifest,missing libManifest,missing-method libManifest,SwitchrCtx libManifest,SwitchrCtx-method
library_pathslibrary_paths library_paths,SwitchrCtx library_paths,SwitchrCtx-method
LibraryProfile (experimental)LibraryProfile-class
Load a GRAN repo packageloadGRAN
loadManifestloadManifest
locatePkgVersionlocatePkgVersion
locationlocation location,PkgSource-method
logfunlogfun logfun,SwitchrParam logfun,SwitchrParam-method logfun<- logfun<-,SwitchrParam logfun<-,SwitchrParam-method
Make a Bioconductor SVN url for a packagemakeBiocSVNURL
make file urlmakeFileURL
makeLibraryCtxmakeLibraryCtx
Manifest constructormakeManifest
Create a checkout of a package and all it's dependencies from a manifestmakePkgCheckout
makePkgDirmakePkgDir makePkgDir,ANY,ANY makePkgDir,ANY,ANY-method makePkgDir,ANY,BiocSource makePkgDir,ANY,BiocSource-method makePkgDir,ANY,CRANSource makePkgDir,ANY,CRANSource-method makePkgDir,ANY,GithubSource makePkgDir,ANY,GithubSource-method makePkgDir,ANY,GitSource makePkgDir,ANY,GitSource-method makePkgDir,ANY,LocalSource makePkgDir,ANY,LocalSource-method makePkgDir,ANY,SVNSource makePkgDir,ANY,SVNSource-method makePkgDir,ANY,TarballSource makePkgDir,ANY,TarballSource-method
makeSeedManmakeSeedMan makeSeedMan,data.frame makeSeedMan,data.frame-method makeSeedMan,missing makeSeedMan,missing-method makeSeedMan,parsedSessionInfo makeSeedMan,parsedSessionInfo-method makeSeedMan,sessionInfo makeSeedMan,sessionInfo-method
Create a PkgSource object for a packagemakeSource
Get or set the manifest associated with an objectmanifest manifest,SessionManifest manifest,SessionManifest-method manifest<- manifest<-,SessionManifest manifest<-,SessionManifest-method
manifest_dfmanifest_df manifest_df,PkgManifest manifest_df,PkgManifest-method manifest_df,SessionManifest manifest_df,SessionManifest-method manifest_df<- manifest_df<-,PkgManifest manifest_df<-,PkgManifest-method manifest_df<-,SessionManifest manifest_df<-,SessionManifest-method
Create Manifest from 'checkedout' directory containing many pkg dirsmanifestFromCheckoutDir
ManifestRowManifestRow
normalizePath2normalizePath2
Notrack directorynotrack notrack,NULL notrack,NULL-method
Number of rowsnrow nrow,PkgManifest nrow,PkgManifest-method nrow,SessionManifest nrow,SessionManifest-method
packagespackages packages,SwitchrCtx packages,SwitchrCtx-method
Parsed sessionInfo outputparsedSessionInfo-class
Parse text output from printing SessionInfo objectsparseSessionInfoString
PkgManifestPkgManifest PkgManifest-class
pkgnamepkgname pkgname,PkgSource pkgname,PkgSource-method pkgname<- pkgname<-,PkgSource pkgname<-,PkgSource-method
PkgSourceBiocSource-class CRANSource-class CVSSource-class GithubSource-class GitSource-class LocalSource-class PkgSource-class SVNSource-class TarballSource-class
publishManifestpublishManifest publishManifest,missing,ANY publishManifest,missing,ANY-method publishManifest,PkgManifest,character publishManifest,PkgManifest,character-method publishManifest,SessionManifest,character publishManifest,SessionManifest,character-method publishManifest,SwitchrCtx,ANY publishManifest,SwitchrCtx,ANY-method
removeLibremoveLib
RepoSubsetRepoSubset RepoSubset-class
rVersionManifestrVersionManifest
SessionManifestSessionManifest SessionManifest-class
shell initsh_init_script sh_init_script,SwitchrParam sh_init_script,SwitchrParam-method sh_init_script<- sh_init_script<-,SwitchrParam,ANY sh_init_script<-,SwitchrParam-method
Get or set the number of seconds to wait between successive shell commandsshell_timing shell_timing,SwitchrParam shell_timing,SwitchrParam-method shell_timing<- shell_timing<-,SwitchrParam shell_timing<-,SwitchrParam-method
subdirsubdir subdir,PkgSource subdir,PkgSource-method subdir<- subdir<-,PkgSource subdir<-,PkgSource-method
switchBackswitchBack
switchrDepsswitchDeps
Get or set the base directory for switchr librariesswitchrBaseDir
SwitchrCtxSwitchrCtx SwitchrCtx-class
Get or set packages to not unload when flushing the systemswitchrDontUnload
switchrManifestswitchrManifest
Skip unloading of packages in sessionswitchrNoUnload
SwitchrParamSwitchrParam SwitchrParam-class
switchToswitchTo switchTo,character,character switchTo,character,character-method switchTo,character,missing switchTo,character,missing-method switchTo,character,PkgManifest switchTo,character,PkgManifest-method switchTo,character,RepoSubset switchTo,character,RepoSubset-method switchTo,character,SessionManifest switchTo,character,SessionManifest-method switchTo,character,SwitchrCtx switchTo,character,SwitchrCtx-method switchTo,SwitchrCtx,ANY switchTo,SwitchrCtx,ANY-method
system_w_initsystem_w_init
update existing package repositoryupdate_PACKAGES
updateManifestupdateManifest
versions_dfversions_df versions_df,SessionManifest versions_df,SessionManifest-method versions_df<- versions_df<-,SessionManifest versions_df<-,SessionManifest-method