mantaGet: Downloads specified Manta object(s), to file(s) or buffer.

Description Usage Arguments Value See Also Examples

View source: R/mantaGet.R

Description

One limitation of the mantaRSDK is that it is not designed to handle large (multi-Gigabyte or larger) objects. Uploads - mantaPut - work from files, but Downloads - mantaGet - fill the R memory space to their completion before being written to a file. To download files larger than your R memory, use the Manta Node.js command line tool mget. The Node.js based Manta command line tools employ streams, so object size is not a limitation.

Usage

1
2
mantaGet(mantapath, filename, buffer = FALSE, metadata = FALSE,
  info = TRUE, verbose = FALSE)

Arguments

mantapath

vector of character, optional. Path to a manta object or object name in current working Manta directory for retrieval. Vectorized,

filename

optional. Assumes this is the target filename in the current path. Downloads file to the local path specified by getwd if full path not specified. If filename is absent, downloads to a file with same name as Manta object.

buffer

logical required. When TRUE return a buffer with data. Not supported for vectorized mantapath input.

metadata

logical optional. Set TRUE to retrieve R metadata.

info

logical. Set FALSE to suppress Downloading console messages.

verbose

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

Value

TRUE or FALSE depending on success of GET transfer

See Also

mantaPut

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
data <- runif(100)
mantaDump("data")
rm(data)
mantaGet("dumpdata.R")
mantaRm("dumpdata.R")
source("dumpdata.R")
ls()

#mantaGet(mantaLs.paths(items = 'o'))
## Downloads the objects in your Manta working directory to your local working R directory with
## the same filenames.

#mantaGet(mantaLs.paths(items = 'o'), metadata = TRUE)
## Downloads and return just the metadata in R format for the Manta working directory contents.

## End(Not run)

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