spod_set_data_dir: Set the data directory

View source: R/data-dir.R

spod_set_data_dirR Documentation

Set the data directory

Description

[Stable]

This function sets the data directory in the environment variable SPANISH_OD_DATA_DIR, so that all other functions in the package can access the data. It also creates the directory if it doesn't exist.

Usage

spod_set_data_dir(data_dir, quiet = FALSE)

Arguments

data_dir

The data directory to set.

quiet

A logical value indicating whether to suppress messages. Default is FALSE.

Value

Nothing. If quiet is FALSE, prints a message with the path and confirmation that the path exists.

Examples

spod_set_data_dir(tempdir())


spanishoddata documentation built on April 12, 2025, 1:24 a.m.