Skip to contents

Links the launcher shipped in the package (inst/bin/rmorie) into a directory on your PATH so that rmorie login, rmorie ask ... and the other verbs of morie_cli work from any shell. On Windows a rmorie.cmd wrapper is written instead of a symlink.

Usage

install_cli(
  dir = file.path(path.expand("~"), ".local", "bin"),
  name = "rmorie"
)

Arguments

dir

Target directory (default ~/.local/bin; created if absent).

name

Command name (default rmorie).

Value

The path of the installed launcher, invisibly.

Examples

if (FALSE) { # \dontrun{
install_cli()
} # }