| cli_install | R Documentation |
Copy the launcher shipped inside the installed package to a directory on your
PATH, so artma <command> works from any shell. The launcher relies solely
on the installed package; it resolves nothing from its own location.
The no-install alternative is to call the CLI through Rscript directly:
Rscript -e 'artma::cli_run()' run --options my_analysis.yaml.
In interactive sessions the copy is confirmed via a menu. In non-interactive
sessions it requires force = TRUE and otherwise aborts. It never writes
inside R.home() and never elevates privileges.
cli_install(dir = "~/.local/bin", force = FALSE)
dir |
[character, optional] Directory to install the launcher into.
Defaults to |
force |
[logical, optional] Required to install in a non-interactive
session. Ignored (the menu governs) when interactive. Defaults to |
[character] Path to the installed launcher (invisibly).
## Not run:
artma::cli_install()
artma::cli_install(dir = "~/bin", force = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.