Skip to content

Install DT so macros-table.qmd renders in CI#82

Merged
d-morrison merged 1 commit into
mainfrom
fix/install-DT-for-render
May 26, 2026
Merged

Install DT so macros-table.qmd renders in CI#82
d-morrison merged 1 commit into
mainfrom
fix/install-DT-for-render

Conversation

@d-morrison

Copy link
Copy Markdown
Owner

Problem

Quarto Publish has been failing on main with:

Error in `loadNamespace()`: there is no package called 'DT'
Quitting from macros-table.qmd:166-190 [macros-table]

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 aborts. This is a pre-existing failure (red on every recent main run), unrelated to the recent .github/ config PRs.

Fix

Add DT to the render-dependency installs:

  • publish.yml and preview.ymlany::DT in the setup-r-dependencies package list (alongside knitr/rmarkdown/tibble).
  • copilot-setup-steps.yml"DT" in the install.packages() list so the Copilot agent can render locally.

DT is 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 in DESCRIPTION.

Test plan

  • This PR's preview.yml run renders the full site (including macros-table.qmd) with DT installed — the render step should now pass.
  • After merge, confirm Quarto Publish on main goes green.

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings May 26, 2026 16:13
@claude

claude Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

Claude finished @d-morrison's task in 54s —— View job


Code Review — PR #82: Install DT so macros-table.qmd renders in CI

  • Gather context and read changed files
  • Review workflow changes for correctness and consistency
  • Check for other workflows that render Quarto (could also need DT)
  • Post review

Summary: looks good — minimal, correct, and well-targeted.

.github/workflows/preview.yml and publish.yml

Both add any::DT to the setup-r-dependencies package list alongside the existing any::knitr, any::rmarkdown, any::tibble. The format is consistent and the placement is correct. No issues.

.github/workflows/copilot-setup-steps.yml

Adds "DT" to the install.packages() call. This matches the existing style for that file (which uses base-R install.packages() instead of the r-lib action). Correct.

Minor observation (pre-existing, not introduced here): copilot-setup-steps.yml installs lintr, rmarkdown, and now DT, but is missing knitr and tibble that are present in both render workflows. This is a pre-existing gap and out of scope for this fix, but worth a follow-up if the Copilot agent ever needs a full render environment.

Other workflows

lint-changed-files.yaml and lint-project.yaml install only linting packages (lintr, withr, etc.) and don't invoke quarto render, so they correctly don't need DT. No gaps elsewhere.

Overall

The PR correctly diagnoses a pre-existing render failure, fixes it in all three relevant environments (publish, preview, Copilot), and correctly keeps DT out of DESCRIPTION since it's a submodule content dependency rather than a qwt package dependency. Nothing extraneous committed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 DT in the Publish workflow’s R dependency setup so quarto render no longer aborts.
  • Install DT in the Preview workflow’s R dependency setup to keep PR preview renders consistent with Publish.
  • Install DT in 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.

@d-morrison d-morrison merged commit b2b459f into main May 26, 2026
11 checks passed
@d-morrison d-morrison deleted the fix/install-DT-for-render branch May 26, 2026 16:30
@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-05-26 09:32 PDT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants