Qingsave: save/load

Description Usage Arguments Value See Also Examples

Description

Save/load R object(s) to/from Qing

Usage

1
2
3
4
5
Qingsave(..., object, bucket, opts = NULL)

Qingsave_image(object, bucket, opts = NULL)

Qingload(object, bucket, envir = parent.frame(), ...)

Arguments

...

For Qingsave, one or more R objects to be saved via save and uploaded to Qing. For Qingload, see opts.

object

For Qingsave, a character string of the name of the object you want to save to. For Qingload, a character string of the name of the object you want to load from Qing.

bucket

Character string with the name of the bucket.

opts

Additional arguments passed to QingHTTP.

envir

An R environment to load objects into. Default is the parent.frame() from which the function is called.

Value

For Qingsave, a logical, invisibly, otherwise an error object. For Qingload, NULL invisibly, otherwise an error object.

See Also

QingsaveRDS,QingreadRDS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
# create bucket
b <- put_bucket("myexamplebucket")

# save a dataset to the bucket
Qingsave(mtcars, iris, object = "somedata.Rdata", bucket = b)
get_bucket(b)

# load the data from bucket
e <- new.env()
Qingload(object = "somedata.Rdata", bucket = b, envir = e)
ls(e)

# cleanup
rm(e)
delete_object(object = "somedata.Rdata", bucket = "myexamplebucket")
delete_bucket("myexamplebucket")

## End(Not run)

zhangxing-love/QingStorRSDK_0.1 documentation built on May 4, 2019, 10:17 p.m.