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:
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')) |
Bug tracker:https://github.com/gmbecker/switchr/issues
Last updated 2 years agofrom:4d4e72f200. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 31 2024 |
R-4.5-win | OK | Oct 31 2024 |
R-4.5-linux | OK | Oct 31 2024 |
R-4.4-win | OK | Oct 31 2024 |
R-4.4-mac | OK | Oct 31 2024 |
R-4.3-win | OK | Oct 31 2024 |
R-4.3-mac | OK | Oct 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
Readme and manuals
Help Manual
Help page | Topics |
---|---|
.libpaths2 | .libPaths2 |
addPkg | addPkg addPkg,PkgManifest addPkg,PkgManifest-method addPkg,SessionManifest addPkg,SessionManifest-method |
archive_retries | archive_retries archive_retries,SwitchrParam archive_retries,SwitchrParam-method archive_retries<- archive_retries<-,SwitchrParam archive_retries<-,SwitchrParam-method |
archive_timing | archive_timing archive_timing,SwitchrParam archive_timing,SwitchrParam-method archive_timing<- archive_timing<-,SwitchrParam archive_timing<-,SwitchrParam-method |
BiocDevel | BiocDevel |
BiocRelease | BiocRelease |
biocReposForVers | biocReposForVers |
DEPCRECATED - Create a manifest of Bioc SVN locations | BiocSVNManifest |
BiocVers | BiocVers |
branch | branch branch,PkgSource branch,PkgSource-method branch<- branch<-,PkgSource branch<-,PkgSource-method |
cmethods | c,PkgManifest-method c,SessionManifest-method |
Check if a directory contains package sources | checkIsPkgDir |
cranPkgVersManifest | cranPkgVersManifest |
currentCompEnv | currentCompEnv |
defaultRepos | defaultRepos |
dep_repos | dep_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_method | dl_method dl_method,SwitchrParam dl_method,SwitchrParam-method dl_method<- dl_method<-,SwitchrParam dl_method<-,SwitchrParam-method |
Identify error states from R or external programs | errorOrNonZero |
Get path from file URL | fileFromFileURL |
Find newest packages in a package info data.frame | findNewestPkgInds findNewestPkgRows |
Find a package directory within an SCM checkout | findPkgDir |
findPkgVersionInRepo | findPkgVersionInRepo findPkgVersionInRepo,character findPkgVersionInRepo,character-method findPkgVersionInRepo,NULL findPkgVersionInRepo,NULL-method |
flushSession | flushSession |
full_libpaths | full_libpaths full_libpaths,SwitchrCtx full_libpaths,SwitchrCtx-method |
Construct pockage directory path | getPkgDir |
GithubManifest | GithubManifest |
gotoVersCommit | gotoVersCommit 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 harness | graceful_inet warning2 |
Head and tail operations on manifests | head head,PkgManifest head,PkgManifest-method head,SessionManifest head,SessionManifest-method tail tail,PkgManifest tail,PkgManifest-method tail,SessionManifest tail,SessionManifest-method |
install_packages | install_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 |
lazyRepo | lazyRepo 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 |
libManifest | libManifest libManifest,character libManifest,character-method libManifest,missing libManifest,missing-method libManifest,SwitchrCtx libManifest,SwitchrCtx-method |
library_paths | library_paths library_paths,SwitchrCtx library_paths,SwitchrCtx-method |
LibraryProfile (experimental) | LibraryProfile-class |
Load a GRAN repo package | loadGRAN |
loadManifest | loadManifest |
locatePkgVersion | locatePkgVersion |
location | location location,PkgSource-method |
logfun | logfun logfun,SwitchrParam logfun,SwitchrParam-method logfun<- logfun<-,SwitchrParam logfun<-,SwitchrParam-method |
Make a Bioconductor SVN url for a package | makeBiocSVNURL |
make file url | makeFileURL |
makeLibraryCtx | makeLibraryCtx |
Manifest constructor | makeManifest |
Create a checkout of a package and all it's dependencies from a manifest | makePkgCheckout |
makePkgDir | makePkgDir 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 |
makeSeedMan | makeSeedMan 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 package | makeSource |
Get or set the manifest associated with an object | manifest manifest,SessionManifest manifest,SessionManifest-method manifest<- manifest<-,SessionManifest manifest<-,SessionManifest-method |
manifest_df | manifest_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 dirs | manifestFromCheckoutDir |
ManifestRow | ManifestRow |
normalizePath2 | normalizePath2 |
Notrack directory | notrack notrack,NULL notrack,NULL-method |
Number of rows | nrow nrow,PkgManifest nrow,PkgManifest-method nrow,SessionManifest nrow,SessionManifest-method |
packages | packages packages,SwitchrCtx packages,SwitchrCtx-method |
Parsed sessionInfo output | parsedSessionInfo-class |
Parse text output from printing SessionInfo objects | parseSessionInfoString |
PkgManifest | PkgManifest PkgManifest-class |
pkgname | pkgname pkgname,PkgSource pkgname,PkgSource-method pkgname<- pkgname<-,PkgSource pkgname<-,PkgSource-method |
PkgSource | BiocSource-class CRANSource-class CVSSource-class GithubSource-class GitSource-class LocalSource-class PkgSource-class SVNSource-class TarballSource-class |
publishManifest | publishManifest 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 |
removeLib | removeLib |
RepoSubset | RepoSubset RepoSubset-class |
rVersionManifest | rVersionManifest |
SessionManifest | SessionManifest SessionManifest-class |
shell init | sh_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 commands | shell_timing shell_timing,SwitchrParam shell_timing,SwitchrParam-method shell_timing<- shell_timing<-,SwitchrParam shell_timing<-,SwitchrParam-method |
subdir | subdir subdir,PkgSource subdir,PkgSource-method subdir<- subdir<-,PkgSource subdir<-,PkgSource-method |
switchBack | switchBack |
switchrDeps | switchDeps |
Get or set the base directory for switchr libraries | switchrBaseDir |
SwitchrCtx | SwitchrCtx SwitchrCtx-class |
Get or set packages to not unload when flushing the system | switchrDontUnload |
switchrManifest | switchrManifest |
Skip unloading of packages in session | switchrNoUnload |
SwitchrParam | SwitchrParam SwitchrParam-class |
switchTo | switchTo 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_init | system_w_init |
update existing package repository | update_PACKAGES |
updateManifest | updateManifest |
versions_df | versions_df versions_df,SessionManifest versions_df,SessionManifest-method versions_df<- versions_df<-,SessionManifest versions_df<-,SessionManifest-method |