data_path: Standardize file paths

Description Usage Arguments Value Examples

View source: R/data_path.R

Description

Create path to defined data directory by defining/re-defining content_dir; option to change directory opening for specific purposes.

Usage

1
data_path(..., dir = content_dir)

Arguments

...

objects or strings fed to a paste0 function

dir

a root directory

Value

string

Examples

1
2
3
content_dir <- "~/r_proj/cats/"
filename <- "dogs.csv"
data_path("data/output/", filename)

dpowerstp/tpfuncts documentation built on Dec. 20, 2021, 1:12 a.m.