Description Usage Arguments Details Value See Also Examples
Downloads Manta "current.Rdata"
object stored in
users' workspace directory containing R workspace and uses
R function load
to load the R workspace.
1 | mantaLoad.ws(envir = parent.frame())
|
envir |
optional. Environment in which to load, See
|
Together with mantaSave.ws
this function works from
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
. 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")
Checks for appropriate content-type
HTTP header,
which is set by mantaSave
or mantaSave.ws
to
"application/x-r-data"
.
TRUE
or FALSE
depending on success of
download.
mantaSave.ws
mantaLoad
mantaSetwd.ws
Other mantaGet: mantaCat
;
mantaGet
; mantaLoad
;
mantaSave
; mantaSource
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.