MASTER.DATA.PATH: Create paths to specific 2dii directories, depending on a...

View source: R/paths.R

MASTER.DATA.PATHR Documentation

Create paths to specific 2dii directories, depending on a configuration file

Description

The output of this functions depends on the configuration file.

Usage

MASTER.DATA.PATH(...)

FIN.DATA.PATH(...)

CBMARKET.DATA.PATH(...)

DATA.STORE.PATH(...)

ANALYSIS.INPUTS.PATH(...)

Arguments

...

Arguments passed on to fs::path_wd

ext

An optional extension to append to the generated path.

Value

A character string.

See Also

Replaces dataprep.SetPaths().

USER.NAME

Examples

MASTER.DATA.PATH()

# The output of these functions depends on the configuration file you use
# Defaults to using a configuration file that comes with the package
FIN.DATA.PATH()

# You may use your own configuration file via `options()`
path_to_your_config_file <- example_config("config-toy.yml")
old_options <- options(r2dii_config = path_to_your_config_file)
FIN.DATA.PATH()

# Restore
options(old_options)

# Back to default
FIN.DATA.PATH()
CBMARKET.DATA.PATH()
DATA.STORE.PATH()
ANALYSIS.INPUTS.PATH()

2DegreesInvesting/r2dii.utils documentation built on March 31, 2022, 11:20 p.m.