mantaSave: Uploads R data to Manta Storage Service using R function...

Description Usage Arguments Value See Also Examples

View source: R/mantaSave.R

Description

Uploads to R data files .rda .Rdata .RData files. If no file extension is provided, .rda is appended. mantaSave is a wrapper for save and mantaXfer, which implements the RCURL upload.

Usage

1
2
3
4
5
mantaSave(..., list = character(),
  mantapath = stop("'mantapath' destination file or full path must be specified"),
  md5 = FALSE, headers, durability = 2, ascii = FALSE, version = NULL,
  envir = parent.frame(), compress = !ascii, compression_level,
  eval.promises = TRUE, precheck = TRUE, info = TRUE, verbose = FALSE)

Arguments

...

See save R objects to be saved

list

required. See save List of R objects to be saved.

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.

ascii

optional. See save.

version

optional. See save.

envir

optional. See save. Environment of R object being passed.

compress

optional. See save.

compression_level

optional. See save.

eval.promises

optional. See save.

precheck

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 transfer.

See Also

mantaLoad

Other mantaGet: mantaCat; mantaGet; mantaLoad.ws; mantaLoad; mantaSource

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data <- runif(100)
mantaSave("data", mantapath = "~~/stor/data")
rm(data)
mantaExists("~~/stor/data.rda")
mantaLoad("~~/stor/data.rda")
ls()
rm(data)

## End(Not run)

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