Qingsource: Source from Qing

Description Usage Arguments Value See Also Examples

Description

Source R code (a la source) from Qing

Usage

1
Qingsource(object, bucket, ..., opts = NULL)

Arguments

object

Character string with the object key, or an object of class “object”. In most cases, if object is specified as the latter.

bucket

Character string with the name of the bucket.

...

Additional arguments passed to QingHTTP.

opts

Additional arguments passed to get_object for retrieving the R syntax file.

Value

See source

See Also

QingsaveRDS,Qingsave, get_object

Examples

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

# save some code to the bucket
cat("x <- 'hello world!'\nx", file = "example.R")
put_object("example.R", object = "example.R", bucket = b)
get_bucket(b)

# source the code from the bucket
Qingsource(object = "example.R", bucket = b, echo = TRUE)

# cleanup
unlink("example.R")
delete_object(object = "example.R", bucket = b)
delete_bucket("myexamplebucket")

## End(Not run)

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