Learn R Programming

rDrop (version 0.3-0)

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

Description

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

Usage

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

Run this code
# NOT RUN {
  dropbox_put(auth, 'DESCRIPTION', 'rDrop_DESCRIPTION')
  print(dropbox_get(auth, 'rDrop_DESCRIPTION'))
# }

Run the code above in your browser using DataLab