This guide covers how to set up, build, test, and document the openaq R package locally.
Getting Started
Clone the repository and install dependencies:
install.packages("devtools")
devtools::install_deps(dependencies = TRUE)Building
Build the package tarball:
Or using devtools:
devtools::build()To check the package against CRAN rules:
devtools::check(cran = TRUE)Tests
Tests use the testthat framework with vcr and webmockr for fixture-based mocking.
For full details on running tests, recording cassettes, and coverage, see the Testing Guide.
