path_dropbox_2dii: Easily access directories in your local copy of 2dii's...

View source: R/utils.R

path_dropbox_2diiR Documentation

Easily access directories in your local copy of 2dii's Dropbox folder

Description

These functions create cross-platform paths pointing to 2dii's Dropbox folder: Your projects may need data stored in 2dii's Dropbox folder. Sometimes it is convenient to have your projects close to the data. But, in this case, it is a bad idea because the path to 2dii's Dropbox folder has a problematic space and symbol. (For example, RStudio's Git pane may not work.) Instead, place your projects somewhere with a sane path, such as ⁠C:/Users/You/git/project/⁠, and access the data you need with path_dropbox_2dii().

Usage

path_dropbox_2dii(...)

Arguments

...

Character vectors, if any values are NA, the result will also be NA.

Value

A character string.

Setup for a custom Dropbox folder

If the name of your 2dii Dropbox folder is different from the default, you may add this to .Rprofile (see usethis::edit_r_profile()):

options(r2dii_dropbox = "The name of your custom dropbox folder goes here")

See Also

degrees(), fs::path_home().


2DegreesInvesting/r2dii.climate.stress.test documentation built on June 6, 2024, 8:23 a.m.