| Title: | Manage QC through GitHub Issues |
|---|---|
| Description: | The ghqc R package is a lightweight wrapper that installs and runs the ghqctoolkit CLI binary, which provides a web UI for managing QC through GitHub Issues and Milestones. |
| Authors: | Wes Cummings [aut, cre], Jenna Johnson [ctb], Anne Zheng [ctb], Janelle Lennie [ctb], Devin Pastoor [ctb], Andrew Acker [ctb] |
| Maintainer: | Wes Cummings <[email protected]> |
| License: | GPL (>= 3) + file LICENSE |
| Version: | 1.0.1 |
| Built: | 2026-05-08 15:53:13 UTC |
| Source: | https://github.com/a2-ai/ghqc |
Starts the ghqc web UI as a supervised background R process and opens it in
the browser. Any previously running ghqc server is stopped first. Use
ghqc_stop() to stop the server, ghqc_status() to check its status, or
ghqc_reconnect() to reopen the browser tab without restarting the server.
ghqc( directory = here::here(), port = NULL, config_dir = NULL, ipv4_only = FALSE, log_level = Sys.getenv("GHQC_LOG_LEVEL", "TRACE") )ghqc( directory = here::here(), port = NULL, config_dir = NULL, ipv4_only = FALSE, log_level = Sys.getenv("GHQC_LOG_LEVEL", "TRACE") )
directory |
Path to the project directory. Defaults to the project root
as determined by |
port |
Integer port to bind the server to. If |
config_dir |
Path to the ghqc configuration directory. If |
ipv4_only |
Force IPv4-only bind and loopback URL |
log_level |
Level of logging the server runs with. Recommended to leave as TRACE
since |
Called for its side effect of starting the server and opening the
browser. Returns NULL invisibly.
## Not run: # Start with defaults (project root, random port) ghqc() # Start on a specific port ghqc(port = 8080) # Start for a subdirectory with a custom config location ghqc(directory = "analysis", config_dir = "~/.config/ghqc") ## End(Not run)## Not run: # Start with defaults (project root, random port) ghqc() # Start on a specific port ghqc(port = 8080) # Start for a subdirectory with a custom config location ghqc(directory = "analysis", config_dir = "~/.config/ghqc") ## End(Not run)
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.
ghqc_install(version = NULL)ghqc_install(version = NULL)
version |
Optional release tag to install, such as |
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.
NULL invisibly.
## Not run: ghqc_install() ghqc_install(version = "v0.7.0") ## End(Not run)## Not run: ghqc_install() ghqc_install(version = "v0.7.0") ## End(Not run)
Blocks the R session and prints server log output as it arrives. Press Ctrl+C (or Escape in RStudio/Positron) to stop streaming.
ghqc_log(log_level = Sys.getenv("GHQC_LOG_LEVEL", "DEBUG"), interval = 0.2)ghqc_log(log_level = Sys.getenv("GHQC_LOG_LEVEL", "DEBUG"), interval = 0.2)
log_level |
Logging filter level |
interval |
Seconds to wait for output before checking again. |
Opens a browser tab pointing to a ghqc server that is already running in the background. This is useful after accidentally closing the browser tab without stopping the server. If no server is running, a message is printed instead.
ghqc_reconnect()ghqc_reconnect()
The stored server URL invisibly, or NULL invisibly if no server is
running.
## Not run: ghqc() ghqc_reconnect() ## End(Not run)## Not run: ghqc() ghqc_reconnect() ## End(Not run)
Queries the GitHub Releases API for the a2-ai/ghqctoolkit repository and
returns the tag name of the latest release (e.g. "v0.4.2"). Returns
NULL invisibly and prints a warning if the request fails (e.g. due to no
internet access or rate limiting).
ghqc_remote_version()ghqc_remote_version()
A character string with the latest release tag (e.g. "v0.4.2"), or
NULL invisibly if the version could not be determined.
## Not run: ghqc_remote_version() ## End(Not run)## Not run: ghqc_remote_version() ## End(Not run)
Collects and displays diagnostic information about the ghqc binary, the currently running ghqc background server (if any), and the git repository for the given directory (owner, repo, branch, and milestones). It also reports authentication state for the repository host. Optionally it reports on the ghqc configuration (checklists, options, etc.).
ghqc_sitrep( directory = here::here(), config_dir = NULL, with_configuration = FALSE )ghqc_sitrep( directory = here::here(), config_dir = NULL, with_configuration = FALSE )
directory |
Path to the project directory. Defaults to the project root
as determined by |
config_dir |
Path to the ghqc configuration directory. If |
with_configuration |
Logical. If |
The raw sitrep data list returned by ghqc sitrep --json,
invisibly. The primary purpose of this function is its printed output.
## Not run: # Basic sitrep ghqc_sitrep() # Include configuration details ghqc_sitrep(with_configuration = TRUE) ## End(Not run)## Not run: # Basic sitrep ghqc_sitrep() # Include configuration details ghqc_sitrep(with_configuration = TRUE) ## End(Not run)
Reports whether the server started by ghqc() is currently running and, if
so, prints its URL.
ghqc_status()ghqc_status()
The stored server URL invisibly, or NULL invisibly if no server
has been started this session.
## Not run: ghqc() ghqc_status() ## End(Not run)## Not run: ghqc() ghqc_status() ## End(Not run)
Kills the supervised background process started by ghqc(). If no server is
running, a message is printed and the function returns silently.
ghqc_stop()ghqc_stop()
NULL invisibly.
## Not run: ghqc() ghqc_stop() ## End(Not run)## Not run: ghqc() ghqc_stop() ## End(Not run)
Runs ghqc --version and returns the version string. Errors if the ghqc
binary is not installed; run ghqc_install() first.
ghqc_version()ghqc_version()
A character string containing the version number (e.g. "0.4.2").
## Not run: ghqc_version() ## End(Not run)## Not run: ghqc_version() ## End(Not run)