dropbox_save: Function to save an object from R into Dropbox (not working)

Description Usage Arguments Value Examples

View source: R/dropbox_save.r

Description

This function saves an R object to Dropbox. One can then retrieve it and load it back into R.

Usage

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")

Arguments

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 .rda

Value

JSON object

Examples

 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)

karthik/rDrop documentation built on May 18, 2017, 3:30 p.m.