Description Usage Arguments Value Note See Also Examples
Upload the R value
to the object store connection con
with the key name and
optional path specified by key
.
1 |
con |
An object store connection from |
value |
Any serializeable R value. |
key |
A key name, optionally including a |
xdr |
set |
A character string corresponding to the url of the uploaded object.
Key names are url-encoded and may be changed (cache
returns the uri of the
stored value). The forward slash character /
is NOT url-encoded and reserved for directory
path information. Do not use any slash (forward or backward) in your key names, they will
be interpreted as directory separators.
register_service
uncache
delete
1 2 3 4 5 6 7 8 9 10 | # Start an example local mongoose backend server
mongoose_start()
con <- register_service()
# Cache the 'iris' dataset in a directory named 'mydata':
cache(con, iris, "mydata/iris")
# Retrieve it from the cache into a new variable called 'x'
x <- uncache(con, "mydata/iris")
# Delete the entire 'mydata' directory
delete(con, "mydata")
mongoose_stop()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.