dropbox_put: Function to upload content (in-memory or a file) to Dropbox.

Description Usage Arguments Value Examples

View source: R/dropbox_put.r

Description

Function to upload content (in-memory or a file) to Dropbox.

Usage

1
2
  dropbox_put(cred, what, filename = what,
    curl = getCurlHandle(), ..., verbose = FALSE)

Arguments

cred

Specifies an object of class DropboxCredentials with Dropobox specific credentials.

what

the content to upload, which is either the name of a file, in-memory text or a raw vector.

filename

the name of the file to create in the Dropbox folder.

curl

If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint)

...

optional additional curl options (debugging tools mostly).

verbose

default is FALSE. Set to true to receive full outcome.

Value

information about the uploaded file on dropbox.

Examples

1
2
3
4
5
## Not run: 
  dropbox_put(auth, 'DESCRIPTION', 'rDrop_DESCRIPTION')
  print(dropbox_get(auth, 'rDrop_DESCRIPTION'))

## End(Not run)

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