Skip to content

Instantly share code, notes, and snippets.

View omri374's full-sized avatar

Omri Mendels omri374

  • Microsoft
View GitHub Profile
@omri374
omri374 / R_dropbox_persistency.R
Last active June 16, 2016 18:19
R dropbox persistency
library(rdrop2)
## This script uses both local storage and dropbox to store files. When saving, the file is saved in both locations.
## When loading, the file is first looked for locally, and if not found, is looked for on dropbox.
## Could be used in services such as shinyapps in which you don't have access to persistent storage on the machine.
## Note that you have to authenticate your dropbox API before using rdrop2's methods.
## Global param to set dropbox interface on/off
USE_DROPBOX <<- T