get_data_dir: Check data directory and create if needed

View source: R/get_data_dir.R

get_data_dirR Documentation

Check data directory and create if needed

Description

A utility function that wraps rappdirs::user_cache_dir.

Usage

get_data_dir(path = NULL, package = "overedge")

create_data_dir(path = NULL, create = TRUE)

Arguments

path

Path to directory to use as data directory.

package

Package name; defaults to "overedge"

create

For create_data_dir, if TRUE and directory does not exist at the path, prompt user to create directory. Defaults to TRUE.


elipousson/overedge documentation built on Aug. 13, 2022, 7:41 p.m.