Description Usage Arguments References Examples
This function will allow you to write files of any size to Dropbox(even ones that cannot be read into memory) by uploading them in chunks.
1 2 3 4 5 6 7 8 9 | drop_upload(
file,
path = NULL,
mode = "overwrite",
autorename = TRUE,
mute = FALSE,
verbose = FALSE,
dtoken = get_dropbox_token()
)
|
file |
Relative path to local file. |
path |
The relative path on Dropbox where the file should get uploaded. |
mode |
- "add" - will not overwrite an existing file in case of a conflict. With this mode, when a a duplicate file.txt is uploaded, it will become file (2).txt. - "overwrite" will always overwrite a file - |
autorename |
This logical determines what happens when there is a conflict. If true, the file being uploaded will be automatically renamed to avoid the conflict. (For example, test.txt might be automatically renamed to test (1).txt.) The new name can be obtained from the returned metadata. If false, the call will fail with a 409 (Conflict) response code. The default is 'TRUE' |
mute |
Set to FALSE to prevent a notification trigger on the desktop and mobile apps |
verbose |
By default verbose output is |
dtoken |
The Dropbox token generated by |
1 2 3 4 5 | ## Not run:
write.csv(mtcars, file = "mtt.csv")
drop_upload("mtt.csv")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.