mantaSave.ws: Save current R workspace and uploads to a Manta R workspace...

Description Usage Details Value See Also Examples

View source: R/mantaSave.ws.R

Description

Uploads Manta "current.Rdata" object to an audit-trail workspace directory using mantaSave.image.

Usage

1

Details

Together with mantaLoad.ws this function works with an audit trail of workspaces maintined in a Manta subdirectory created by mantaSave.ws made by R version and mantaRSDK client hostname, that looks like these:
~~/stor/R-3.0.1/cwvh-macbookpro/
~~/stor/R-3.0.2/CHOGUE-HPDV7/
These workspace archive subdirectories are made by mantaSave.ws when first run.
The last saved R workspace from these two systems in each directory is named "current.Rdata". Previously saved R workspaces are renamed to their original GMT creation date/time stamp on Manta and archived with SnapLinks before writing a new workspace.
Archived workspaces are named like this:
"2014-01-07_14:53:05_GMT.Rdata" To retrieve an older workspace or a workspace saved from a different mantaRSDK client and version, use this form:
mantaLoad("~~/stor/R-3.0.0/hostname/2014-01-07_14:53:05_GMT.Rdata" If you wish to save your workspace to a different location use mantaSave.image Adds appropriate content-type HTTP header, which is set to "application/x-r-data".

Value

TRUE or FALSE depending on success of download.

See Also

mantaSave.image mantaLoad mantaSetwd.ws mantaLoad.ws

Other mantaPut: mantaDump; mantaPut; mantaSave.image

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
somedata <- runif(100)
somechar <- "My current workspace"
ls()
mantaSave.ws()
rm(somedata)
rm(somechar)
mantaLoad.ws()
ls()
## What is my workspace subdirectory?
mantaGetwd() -> tempdir
mantaSetwd.ws()
mantaGetwd()   ## this one
mantaLs.l()    ## Inspect workspace archives
mantaSetwd(tempdir)

## End(Not run)

joyent/mantaRSDK documentation built on May 19, 2019, 10:43 p.m.