| xdg_config_home {toscutil} | R Documentation |
Get XDG_CONFIG_HOME
Description
Return value for XDG_CONFIG_HOME as defined by the XDG Base Directory Specification
Usage
xdg_config_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_CONFIG_HOMEexists, return its valueElse, if EV
HOMEexists, return$HOME/.configElse, if EV
USERPROFILEexists, return$USERPROFILE/.configElse, return
$fallback
See Also
Examples
xdg_config_home()
[Package toscutil version 2.8.0 Index]