This function retrieves the data directory from the environment variable SPANISH_OD_DATA_DIR. If the environment variable is not set, it returns the temporary directory.
Value
A character
vector of length 1 containing the path to the data directory where the package will download and convert the data.
Examples
spod_set_data_dir(tempdir())
#> Data directory is writeable.
#> Data directory successfully set to: /tmp/Rtmp7Zoro3
spod_get_data_dir()
#> /tmp/Rtmp7Zoro3