Skip to content
ghqc

ghqc Installation

The ghqc ecosystem is composed of 3 components:

  1. ghqc - A lightweight R package to launch the Shiny apps
  2. ghqc.app - A high dependency R package containing the Shiny apps
  3. Configuration - A configuration directory/repository used to configure the behavior of the ecosystem

On this page, we will walk through the basics of how to install the ghqc ecosystem.

Installation steps will be provided for both base R and rv, A2-Ai’s package manager.

  1. Add a repository containing ghqc and ghqc.app to the repos option

    options("repos" = c(
    "ghqc-eco" = "https://prism.dev.a2-ai.cloud/rpkgs/ghqc-eco/v3",
    getOption("repos")
    ))
  2. Install the package

    We recommend installing all of the dependencies to install pak and gert, but it is not required.

    install.packages("ghqc", dependencies = TRUE)

ghqc provides helper functions to help users finish the set-up. The following will help you interactively set-up the ecosystem.

library(ghqc)
ghqc_setup()
  1. Set the GHQC_CONFIG_REPO environment variable

    Terminal window
    --- GHQC RENVIRON SETUP -----------------------------------------------------
    GHQC_CONFIG_REPO is not set in your ~/.Renviron
    Provide URL to custom configuration repository:
    https://github.com/A2-ai/ghqc.example_config_repo
  2. Set the clone destination directory

    By default, ghqc will clone the configuration repository to $XDG_DATA_HOME/<repo name>. It is highly recommended to input y to clone to the default location.

    Terminal window
    --- CUSTOM CONFIGURATION REPOSITORY --------------------------------------
    Download custom configuration repository to path:
    ~/.local/share/ghqc/ghqc.example_config_repo (y/N) y
  3. Clone the Configuration Repository

    Next, a prompt will appear to confirm you’d like to clone the Configuration Repository to the destination. Input y to download.

    Terminal window
    x Custom configuration repository ghqc.example_config_repo is not found locally
    Would you like to download the repository (y/N)? y

    After a successful download, the repository is verified for its structure and compatibility with the ghqc ecosystem

    Terminal window
    logo.png successfully found
    options.yaml successfully found
    prepended_checklist_note:
    “Note: Please modify checklist items to insert relevant QC context.”
    Checklist directory successfully found
    advanced_checklist.yaml
    simple_checklist.yaml

ghqc.app has over 100 dependencies, with restrictive dependency constraints. To ensure the ghqc.app dependencies do not interfere with project work, ghqc.app and its dependencies are installed in an isolated directory outside the QCed project.

To get started with installation, the user will be prompted with the following:

Terminal window
--- GHQC.APP DEPENDENCY INSTALLATION ----------------------------------------
Would you like to INSTALL new packages form Posit Package Manager or LINK to a
previously installed package library?
1. INSTALL
2. LINK
3. Neither
Input:

By inputting 1, users choose to install ghqc.app and its dependencies into the isolated dependency directory.

  1. Set the installation destination directory

    By default, ghqc will install the dependencies to $XDG_DATA_HOME/ghqc/rpkgs/<OS>/<R VERSION>/<ARCH>. It is highly recommended to input y to install to the default location.

    Terminal window
    Install ghqc.app dependencies to path:
    ~/.local/share/ghqc/rpkgs/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu (y/N) y
  2. Install the packages

    Users will be prompted with the following:

    Terminal window
    x No packages found in ~/.local/share/ghqc/rpkgs
    Would you like to install the ghqc.app dependencies (y/N)? y

    Input y to install ghqc.app and its dependencies.