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.
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.