View source: R/misc_functions.R
get_dropbox_path | R Documentation |
'get_dropbox_path' returns the path of Dropbox. Works for both personal and business accounts
get_dropbox_path(pathtail = character(0), type = c("personal", "business"))
pathtail |
A String vector (if not a string then it is converted to String). If present, it gets concatenated with the Dropbox path. See examples. |
type |
A String scalar ("personal" or "business"). Which Dropbox path to return? The personal or the business one? It may be abbreviated. |
This is an auxilliary function: It finds the Dropbox path in Windows, Linux, and OSX operating systems.
Dropbox path as a String. If pathtail is present, it concatenates the Dropbox path with pathtail.
## Not run:
# Only work if Dropbox is installed.
get_dropbox_path() # Returns personal Dropbox path
get_dropbox_path(type = "business") # Returns business Dropbox path
get_dropbox_path("pathdownthetree") # Returns "Dropbox_path/pathdownthetree",
# where Dropbox_path is the path to personal Dropbox
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.