loadWorkspace: Loads the R script workspace int

Description Usage Arguments Details Value Examples

View source: R/workspaceOperations.R

Description

Loads the R script workspace int

Usage

1
2
3
4
5
loadWorkspace(
  file = NA,
  script = getSourceInfo()$file$file,
  project = getProject()
)

Arguments

file

character string of workspace file to load. If missing then loads last workspace of current R script.

script

character string of R script to load the workspace from. By default loads the current R script's workspace.

project

character project ID to load the workspaces from

Details

Used within an adapr R script or in the console. If file is stated then script parameter is ignored.

Value

output from base::load of workspace file

Examples

1
2
3
4
5
6
7
8
## Not run: 
# To load a dumped workspace
loadWorkspace(script="mylastRscript.R",project="myProjectID")
# To load a preserved workspace from another R script
loadWorkspace(file="myFavoriteObjects.ws")

## End(Not run) 
 

gelfondjal/adapr documentation built on Feb. 2, 2020, 1:32 a.m.