From 5f95589c8fcbadf400daf4252ba388825ed2b74d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 9 Jul 2026 21:50:24 +0000 Subject: [PATCH 1/4] Initial plan From ec16f83644c9e8c3700f2dae551d2b14d2468abd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 9 Jul 2026 21:52:01 +0000 Subject: [PATCH 2/4] docs: add README instructions for renv and non-renv dependencies --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 472a40f..2882dc0 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,15 @@ If needed for use, `reshape2` will need to be install on the R terminal using `i
+## R package dependencies + +- If this repository includes a `renv.lock` file, use `{renv}` to install and activate packages: + - `install.packages("renv")` + - `renv::restore()` +- If you are not using `{renv}`, install packages from the dependency lists used by CI/development: + - R packages: `.github/workflows/render.yml` (and `.github/workflows/render-and-publish.yml`) under `Set up R package dependencies (cached, via pak)` + - Codespaces package list: `.devcontainer/devcontainer.json` + ### Disclaimer This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project content is provided on an ‘as is’ basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government. @@ -47,4 +56,3 @@ This repository is a scientific product and is not official communication of the ### License This content was created by U.S. Government employees as part of their official duties. This content is not subject to copyright in the United States (17 U.S.C. §105) and is in the public domain within the United States of America. Additionally, copyright is waived worldwide through the CC0 1.0 Universal public domain dedication. - From a3d8123461e6e67dd72d3e8c48ecf9447e31bb8c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 9 Jul 2026 22:21:46 +0000 Subject: [PATCH 3/4] docs: make non-renv dependency setup copy-paste free --- README.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2882dc0..e41e2a9 100644 --- a/README.md +++ b/README.md @@ -45,9 +45,27 @@ If needed for use, `reshape2` will need to be install on the R terminal using `i - If this repository includes a `renv.lock` file, use `{renv}` to install and activate packages: - `install.packages("renv")` - `renv::restore()` -- If you are not using `{renv}`, install packages from the dependency lists used by CI/development: - - R packages: `.github/workflows/render.yml` (and `.github/workflows/render-and-publish.yml`) under `Set up R package dependencies (cached, via pak)` - - Codespaces package list: `.devcontainer/devcontainer.json` +- If you are not using `{renv}`, you can install the same R package list used by CI without manually copying package names: + +```r +install.packages(c("pak", "yaml")) +workflow <- yaml::read_yaml(".github/workflows/render.yml") +steps <- workflow$jobs[["build-deploy"]]$steps +dep_step <- steps[[which(vapply( + steps, + function(step) identical(step$uses, "r-lib/actions/setup-r-dependencies@v2"), + logical(1) +))]] +deps <- c(dep_step$with$packages, dep_step$with$`extra-packages`) +deps <- trimws(unlist(strsplit(paste(deps, collapse = "\n"), "\n", fixed = TRUE))) +deps <- deps[nzchar(deps)] +pak::pak(deps) +``` + +- Dependency sources currently used in this repo: + - CI renders: `.github/workflows/render.yml` and `.github/workflows/render-and-publish.yml` + - Codespaces: `.devcontainer/devcontainer.json` +- Big-picture idea for future cleanup: keep one canonical dependency list (for example `config/r-packages.txt`) and have workflows, devcontainer setup, and local install instructions all read from that single file. ### Disclaimer From 25725ffb1d5012e8926434f7246984da9ac34dab Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 9 Jul 2026 23:52:29 +0000 Subject: [PATCH 4/4] docs: remove deferred dependency roadmap note from README --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index e41e2a9..1389975 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,6 @@ pak::pak(deps) - Dependency sources currently used in this repo: - CI renders: `.github/workflows/render.yml` and `.github/workflows/render-and-publish.yml` - Codespaces: `.devcontainer/devcontainer.json` -- Big-picture idea for future cleanup: keep one canonical dependency list (for example `config/r-packages.txt`) and have workflows, devcontainer setup, and local install instructions all read from that single file. ### Disclaimer