mantaLoad: Downloads specified Manta object containing R data and uses R...

Description Usage Arguments Details Value See Also Examples

View source: R/mantaLoad.R

Description

Used to download .rda .Rdata files and load their R data into the workspace or specified envir.

Usage

1
mantaLoad(mantapath, envir = parent.frame(), info = TRUE, verbose = FALSE)

Arguments

mantapath

character, optional. Path to a manta R data file or file name in current working Manta directory for retrieval. Not vectorized.

envir

optional. Environment in which to load, See load.

info

optional. Print information messages to console.

verbose

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

Details

Checks for appropriate content-type HTTP header, which is set by mantaSave or mantaSave.ws to "application/x-r-data".

Value

TRUE or FALSE depending on success of download.

See Also

mantaSave

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

Examples

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

## End(Not run)

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