Learn R Programming

rdrop2 (version 0.6)

drop_get: Downloads a file from Dropbox

Description

Downloads a file from Dropbox

Usage

drop_get(path = NULL, local_file = NULL, rev = NULL, overwrite = FALSE,
  verbose = FALSE, dtoken = get_dropbox_token())

Arguments

path
This is required The path to the new folder to create relative to root.
local_file
The name of the local copy. Leave this blank if you're fine with the original name.
rev
The revision of the file to retrieve. This defaults to the most recent revision.
overwrite
Default is FALSE but can be set to TRUE.
verbose
By default verbose output is FALSE. Set to TRUE if you need to troubleshoot any output or grab additional parameters.
dtoken
The Dropbox token generated by drop_auth. rdrop2 will try to automatically locate your local credential cache and use them. However, if the credentials are not found, the function will initiate a new auth

Examples

Run this code
drop_get(path = 'karthik_small.png', dest = "~/Desktop")
# To overwrite the existing file
 drop_get(path = 'karthik_small.png', overwrite = TRUE)

Run the code above in your browser using DataLab