mantaSave.image: Workspace Upload function that uses R 'save.image'.

Description Usage Arguments Value See Also Examples

View source: R/mantaSave.image.R

Description

mantaSave.image uses mantaSave, mantaXfer, which implements the RCURL transfer This function is wrapped by mantaSave.ws for audit trail management of current and timestamped older R workspaces.

Usage

1
2
3
mantaSave.image(mantapath, md5 = TRUE, headers, durability = 2,
  version = NULL, ascii = FALSE, compress = !ascii, info = TRUE,
  verbose = FALSE)

Arguments

mantapath

required. Path/filename to where uploaded data will go on Manta or Manta object/file name in current working Manta directory. If no extension is provided on the filename, or a non R data style extension .rda is appended to the end of the filename.

md5

logical. Test md5 hash of R data tempfile with OpenSSL before/after PUT transfer. Default is TRUE. Setting FALSE will speed up transfers a bit by skipping this step.

headers

optional. Headers for HTTPS transfer, in RCurl style. See mantaPut. User metadata headers may be provided, E.g.:
Avoid supplying the content-type header, which is set to the R data type "application/x-r-data", and the durability-level header which is handled via the durability parameter.

durability

optional. Number of copies to store on Manta (2-6). If not provided, uses saved value from mantaSetLimits, system default is 2.

version

optional. See save.

ascii

optional. See save.

compress

optional. See save.

info

logical required. Set to FALSE to silence output messages while downloading.

verbose

logical, optional. Passed to RCurl GetURL, Set to TRUE to see background REST communication on stderr. Note this is not visible on Windows.

Value

TRUE or FALSE depending on success of upload.

See Also

mantaLoad mantaSave.ws mantaLoad.ws

Other mantaPut: mantaDump; mantaPut; mantaSave.ws

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
data <- runif(100)
myusername <- mantaWhoami()
ls()
mantaSave.image(mantapath = "~~/stor/myworkspace")
rm(data)
rm(myusername)
mantaExists("~~/stor/myworkspace.RData")
mantaLoad("~~/stor/myworkspace.RData")
ls()
rm(data)
rm(myusername)
mantaRm("~~/stor/myworkspace.RData")

## End(Not run)

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