Skip to contents

Path functions for commonly used directories

Usage

dirs\$data()

Format

An object of class list of length 14.

Arguments

...

(chr) directory paths

mkpath

lgl Whether to return a path regardless of whether the file/dir exists or not

ext

(chr) file extension

mustWork

lgl If TRUE, an error is given if there are no matching files.

Examples

dirs$data("mydata", ext = "csv", mkpath = TRUE)
#> data/mydata/TRUE.csv