Learn R Programming

switchr

An R package for managing, installing into, and seamlessly switching between R package libraries ("software contexts")

To switch to a different library, creating it if necessary, use the switchTo function:

switchTo("mynewlib")

Then work normally, when you wish to switch back to your original library, use switchBack:

switchBack()

Copy Link

Version

Install

install.packages('switchr')

Monthly Downloads

492

Version

0.14.8

License

Artistic-2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

March 21st, 2023

Functions in switchr (0.14.8)

checkIsPkgDir

Check if a directory contains package sources
currentCompEnv

currentCompEnv
archive_retries

archive_retries
findNewestPkgInds

Find newest packages in a package info data.frame
SwitchrCtx

SwitchrCtx
c,SessionManifest-method

cmethods
archive_timing

archive_timing
.libPaths2

.libpaths2
findPkgDir

Find a package directory within an SCM checkout
install_packages

install_packages
gotoVersCommit

gotoVersCommit
dl_method

dl_method
dep_repos

dep_repos
findPkgVersionInRepo

findPkgVersionInRepo
defaultRepos

defaultRepos
library_paths

library_paths
location

location
flushSession

flushSession
graceful_inet

Internal internet harness
head

Head and tail operations on manifests
makePkgCheckout

Create a checkout of a package and all it's dependencies from a manifest
lazyRepo

lazyRepo
makeManifest

Manifest constructor
locatePkgVersion

locatePkgVersion
normalizePath2

normalizePath2
sh_init_script

shell init
shell_timing

Get or set the number of seconds to wait between successive shell commands
makePkgDir

makePkgDir
loadGRAN

Load a GRAN repo package
loadManifest

loadManifest
libManifest

libManifest
packages

packages
makeFileURL

make file url
rVersionManifest

rVersionManifest
makeLibraryCtx

makeLibraryCtx
nrow

Number of rows
switchTo

switchTo
switchDeps

switchrDeps
switchrManifest

switchrManifest
notrack

Notrack directory
switchrNoUnload

Skip unloading of packages in session
removeLib

removeLib
pkgname

pkgname
getPkgDir

Construct pockage directory path
full_libpaths

full_libpaths
manifestFromCheckoutDir

Create Manifest from 'checkedout' directory containing many pkg dirs
makeSource

Create a PkgSource object for a package
makeSeedMan

makeSeedMan
fileFromFileURL

Get path from file URL
publishManifest

publishManifest
errorOrNonZero

Identify error states from R or external programs
parsedSessionInfo-class

Parsed sessionInfo output
parseSessionInfoString

Parse text output from printing SessionInfo objects
switchrDontUnload

Get or set packages to not unload when flushing the system
switchrBaseDir

Get or set the base directory for switchr libraries
update_PACKAGES

update existing package repository
versions_df

versions_df
logfun

logfun
subdir

subdir
manifest_df

manifest_df
manifest

Get or set the manifest associated with an object
makeBiocSVNURL

Make a Bioconductor SVN url for a package
updateManifest

updateManifest
switchBack

switchBack
system_w_init

system_w_init
BiocDevel

BiocDevel
ManifestRow

ManifestRow
SessionManifest

SessionManifest
GithubManifest

GithubManifest
PkgSource-class

PkgSource
BiocSVNManifest

DEPCRECATED - Create a manifest of Bioc SVN locations
PkgManifest

PkgManifest
RepoSubset

RepoSubset
BiocVers

BiocVers
branch

branch
cranPkgVersManifest

cranPkgVersManifest
biocReposForVers

biocReposForVers
addPkg

addPkg
BiocRelease

BiocRelease
SwitchrParam-class

SwitchrParam