Install DT so macros-table.qmd renders in CI#82
Conversation
The `macros` submodule's macros-table.qmd renders an interactive table via DT::datatable()/DT::JS(), but DT was not installed in any render environment, so `quarto render` failed with "there is no package called 'DT'" — breaking Quarto Publish on main (and PR previews). Add `any::DT` to the setup-r-dependencies package lists in publish.yml and preview.yml, and add "DT" to copilot-setup-steps.yml's install list so the Copilot agent can render locally too. DT is a render-content dependency (macros submodule), not qwt R-package code, so it lives with the other render deps (knitr/rmarkdown/tibble) rather than in DESCRIPTION. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Claude finished @d-morrison's task in 54s —— View job Code Review — PR #82: Install DT so macros-table.qmd renders in CI
Summary: looks good — minimal, correct, and well-targeted.
|
There was a problem hiding this comment.
Pull request overview
This PR fixes a Quarto render failure in CI caused by the DT R package not being installed, which is required by macros-table.qmd (from the macros submodule) for DT::datatable() rendering.
Changes:
- Install
DTin the Publish workflow’s R dependency setup soquarto renderno longer aborts. - Install
DTin the Preview workflow’s R dependency setup to keep PR preview renders consistent with Publish. - Install
DTin the Copilot agent setup workflow so the coding agent environment can render the project successfully.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/publish.yml | Adds any::DT to the R dependency install list used during publish renders. |
| .github/workflows/preview.yml | Adds any::DT to the R dependency install list used during PR preview renders. |
| .github/workflows/copilot-setup-steps.yml | Adds DT to the R packages installed in the Copilot agent environment. |
|
Problem
Quarto Publishhas been failing onmainwith:The
macrossubmodule'smacros-table.qmdrenders an interactive table viaDT::datatable()/DT::JS(), butDTwas not installed in any render environment, soquarto renderaborts. This is a pre-existing failure (red on every recentmainrun), unrelated to the recent.github/config PRs.Fix
Add
DTto the render-dependency installs:publish.ymlandpreview.yml—any::DTin thesetup-r-dependenciespackage list (alongsideknitr/rmarkdown/tibble).copilot-setup-steps.yml—"DT"in theinstall.packages()list so the Copilot agent can render locally.DTis a render-content dependency (it comes from the macros submodule's content, not qwt's R-package code), so it lives with the other render deps rather than inDESCRIPTION.Test plan
preview.ymlrun renders the full site (includingmacros-table.qmd) withDTinstalled — the render step should now pass.Quarto Publishonmaingoes green.🤖 Generated with Claude Code