dropbox_folder: Find the Dropbox folder on a Windows machine

Description Usage Value Source Examples

Description

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

Usage

1

Value

The path to the Dropbox folder, a character string

Source

This solution comes from http://stackoverflow.com/questions/35985167/determining-the-dropbox-path-in-r

Examples

1
2
3
4
5
6
## Not run: 
.Dropbox <- dropbox_folder()
my_file <- paste(.Dropbox, "R/my_file.csv", sep="")
mydata <- read.csv(my_file)

## End(Not run)

friendly/myutil documentation built on May 16, 2019, 3:29 p.m.