xdg_data_home {toscutil} | R Documentation |
Get XDG_DATA_HOME
Description
Return value for XDG_DATA_HOME as defined by the XDG Base Directory Specification
Usage
xdg_data_home(sep = "/", fallback = normalizePath(getwd(), winslash = sep))
Arguments
sep |
Path separator to be used on Windows |
fallback |
Value to return as fallback (see details) |
Value
The following algorithm is used to determine the returned path:
If environment variable (EV)
$XDG_DATA_HOME
exists, return its valueElse, if EV
$HOME
exists, return$HOME/.local/share
Else, if EV
$USERPROFILE
exists, return$USERPROFILE/.local/share
Else, return
$fallback
See Also
Examples
xdg_data_home()
[Package toscutil version 2.8.0 Index]