restoreSearchPath: Restore a Search Path

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Set the current session's search path to be equal to the search path described in the sessionInfo object.

Usage

1

Arguments

sessionInfo

A sessionInfo object containing search path info

envir

Environment to search for non-package objects that are referenced in the sessionInfo object.

clean

Boolean indicating whether elements in current session's search path that are not in the sessionInfo's search path should be removed.

Value

This method is executed for it's side-effects, which is a modified search path.

Note

This function is somewhat experimental and so it might not be possible to restore all search path elements.

Author(s)

Matthew D. Furia matt.furia@sagebase.org

https://github.com/MattNapsAlot

See Also

sessionSummary

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
## get the session info
info <- sessionSummary()

## save to a file
save(info, file = "sessionInfo.rbin")

## load the session info
load("sessionInfo.rbin")

## restore the search path
restoreSearchPath(info)

## End(Not run)

Sage-Bionetworks/sessionTools documentation built on May 9, 2019, 12:13 p.m.