get_dropbox_path: Get Dropbox path

View source: R/misc_functions.R

get_dropbox_pathR Documentation

Get Dropbox path

Description

'get_dropbox_path' returns the path of Dropbox. Works for both personal and business accounts

Usage

get_dropbox_path(pathtail = character(0), type = c("personal", "business"))

Arguments

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.

Details

This is an auxilliary function: It finds the Dropbox path in Windows, Linux, and OSX operating systems.

Value

Dropbox path as a String. If pathtail is present, it concatenates the Dropbox path with pathtail.

Examples

## 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)

ChristK/CKutils documentation built on April 11, 2025, 10:11 p.m.