xdg_data_home | R Documentation |
Return value for XDG_DATA_HOME as defined by the XDG Base Directory Specification
xdg_data_home(sep = "/", fallback = normalizePath(getwd(), winslash = sep))
sep |
Path separator to be used on Windows |
fallback |
Value to return as fallback (see details) |
The following algorithm is used to determine the returned path:
If environment variable (EV) $XDG_DATA_HOME
exists, return its value
Else, if EV $HOME
exists, return $HOME/.local/share
Else, if EV $USERPROFILE
exists, return $USERPROFILE/.local/share
Else, return $fallback
xdg_config_home()
xdg_data_home()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.