required_packages <- c(
"httr2", # HTTP requests to the GJD API
"jsonlite", # JSON parsing
"dplyr", # Data manipulation
"tidyr", # Data tidying
"ggplot2", # Data visualization
"DT", # Interactive tables
"readr" # Reading CSV / tabular data
)
install.packages(required_packages)Get Started
Set up your environment to run the GJD R use cases
Prerequisites
Before running any of the examples in this section, make sure you have the following software installed on your machine.
1. R
You need R version 4.3 or higher.
- Download from CRAN
- Verify your installation by running in a terminal:
R --version2. Quarto
Quarto is used to render the .qmd notebooks into HTML.
- Download from quarto.org
- Verify your installation:
quarto --version3. IDE (recommended)
Any of the following will work well:
| IDE | Notes |
|---|---|
| RStudio | Quarto support built-in |
| VS Code / Cursor | Install the Quarto extension |
Required R Packages
The use cases in this section rely on a set of common R packages. Install them all at once by running the following in your R console:
You can verify that all packages load correctly:
lapply(required_packages, library, character.only = TRUE)Clone and Render
Once everything is installed, clone the repository and render the R section:
git clone <repo-url>
cd usecasegjd/R
quarto renderThis will generate all HTML files from the .qmd notebooks. Open index.html in your browser to explore the results.
Render a single use case
quarto render my-use-case.qmdLive preview while editing
quarto previewThis starts a local server and automatically refreshes the page when you save changes to any .qmd file.
Next Steps
You’re all set! Head to the Use Cases section in the sidebar to start exploring examples.