install_cli | R Documentation |
The scripts (scdrake
shell script and scdrake.R
) are bundled with the scdrake
package and their paths can
be retrieved with:
system.file("scdrake", package = "scdrake", mustWork = TRUE) system.file("scdrake.R", package = "scdrake", mustWork = TRUE)
check_cli()
is checking the presence of the scdrake
CLI script in the PATH
environment variable, and
whether the command $ scdrake -h
finishes successfully.
install_cli(
dir = NULL,
type = c("user", "system"),
ask = TRUE,
verbose = TRUE,
.dry = FALSE
)
check_cli(verbose = TRUE)
dir |
A character scalar: path to directory where scripts will be copied to.
If |
type |
A character scalar:
|
ask |
A logical scalar: if |
verbose |
A logical scalar: if |
.dry |
A logical scalar: if |
install_cli()
: invisibly a character vector of length two: paths to installed files.
check_cli()
: invisibly TRUE
when the checks are successful, FALSE
otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.