install_cli() writes a small platform launcher that runs the current Rscript with epwshiftr::epwshiftr_cli(exit = TRUE). It does not modify shell profiles or PATH.

install_cli(bin_dir = NULL, name = "epwshiftr", overwrite = FALSE)

Arguments

bin_dir

Directory where the launcher should be written. Defaults to ~/.local/bin on macOS/Linux and %LOCALAPPDATA%/epwshiftr/bin on Windows.

name

Launcher command name. Default: "epwshiftr".

overwrite

Whether to replace an existing launcher. Default: FALSE.

Value

A data.table describing the installed launcher.