View source: R/dropbox_folder.R
dropbox_folder | R Documentation |
Sourcing functions or reading data files can be a problem when they are stored in a Dropbox
folder you access on different machines. This function uses the Dropbox file,
info.json
, always found at either %APPDATA%\Dropbox\info.json
or
%LOCALAPPDATA%\Dropbox\info.json
dropbox_folder()
The path to the Dropbox folder, a character string
This solution comes from http://stackoverflow.com/questions/35985167/determining-the-dropbox-path-in-r
## Not run:
.Dropbox <- dropbox_folder()
my_file <- paste(.Dropbox, "R/my_file.csv", sep="")
mydata <- read.csv(my_file)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.