Description Usage Arguments Value Examples
This function saves an R object to Dropbox. One can then retrieve it and load it back into R.
1 2 3 4 5 | dropbox_save(cred, list = character(),
file = stop("'file' must be specified"),
envir = parent.frame(), precheck = TRUE,
verbose = FALSE, curl = getCurlHandle(), ...,
ext = ".rda")
|
cred |
Specifies an object of class DropboxCredentials with Dropobox specific credentials. |
list |
List of objects from the current R environment that needs to be saved into dropbox |
file |
Required filename. No extenstion needs to be supplied. If you provide one, it will be stripped and replace with rda. |
envir |
optional. Defaults to parent environment. |
precheck |
internal use. Checks to make sure all objects are in the parent environment. |
curl |
If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint) |
verbose |
default is FALSE. Set to true to receive full outcome. |
... |
optional additional curl options (debugging tools mostly). |
ext |
file extension. Default is |
JSON object
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
dropbox_save(cred, robject, file='filename')
dropbox_save(cred, file = 'testRData', .objs = list(a = 1:3, b = letters[1:10]))
a = dropbox_get(cred, 'testRData.rdata', binary = TRUE)
val = unserialize(rawConnection(a))
# specifying our own name without the standard .rdata
dropbox_save(cred, list(a = 1:4, b = letters[1:3]), I('duncan.rda'), verbose = TRUE)
# or
dropbox_save(cred, list(a = 1:4, b = letters[1:3]), 'duncan', verbose = TRUE, ext = '.rda')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.