View source: R/get_install_dir.R
get_install_dir | R Documentation |
condathis
Data DirectoryRetrieves the installation directory for the condathis
package, creating it if it does not exist.
This function ensures that the package data directory complies with the freedesktop's XDG Base Directory Specification.
The base path can be controlled by the XDG_DATA_HOME
environment variable.
Additionally, on Windows, %LOCALAPPDATA%
is also accepted as the base installation directory.
get_install_dir()
If the directory does not exist, it will be created. On macOS,
special handling is applied to avoid spaces in the path,
as micromamba run
fails if there are spaces in the path (e.g., in ~/Library/Application Support/condathis
).
Therefore, Unix-style paths are used on macOS.
A character string representing the normalized, real path to the condathis
data directory.
condathis::with_sandbox_dir({
condathis::get_install_dir()
#> /home/username/.local/share/condathis
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.