Skip to contents

Downloads and installs the ghqc command-line binary using the bundled platform install script. On Linux and macOS, the binary is installed to ~/.local/bin. On Windows, it is installed to %LOCALAPPDATA%/Programs/ghqc.

Usage

ghqc_install(version = NULL)

Arguments

version

Optional release tag to install, such as "v0.4.1". If omitted, the latest available release is installed.

Value

NULL invisibly.

Details

If version is not supplied and ghqc is already installed, the local version is compared to the latest GitHub release. When running interactively and a newer version is available, the user is prompted to confirm the upgrade before proceeding. If version is supplied, that specific release is installed instead.

After a successful install, the install directory is added to PATH for the current R session if it is not already present.

Examples

if (FALSE) { # \dontrun{
ghqc_install()
ghqc_install(version = "v0.7.0")
} # }