Skip to contents

Retrieve the user-specific config dir

Usage

get_user_cfg_dir(cfg_dir = NULL)

Arguments

cfg_dir

A character string specifying the config directory, or NULL for the default. Default: An OS-specific path for user configuration files in the user's home directory.

Value

A character string: the supplied config dir or the default config dir if none was provided.

Examples

get_user_cfg_dir()
#> [1] "/home/runner/.config/R-dimex"
get_user_cfg_dir(file.path("config"))
#> [1] "config"