[WIP] Fix pkgdown website rendering issues#164
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. |
|
@copilot can we skip any of the jags system dependencies? |
Yes, we can skip JAGS dependencies in some workflows:
I'll clean up the test-coverage workflow and add JAGS to pkgdown. |
…verage, add to pkgdown Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
d-morrison
left a comment
There was a problem hiding this comment.
are these changes still helpful?
Yes, these changes are still helpful: 1. Adding JAGS to pkgdown.yaml (commit 6ff113f):
2. Removing unused platform steps from test-coverage.yaml (commit 6ff113f):
Both changes are valid optimizations that should be kept. |
There was a problem hiding this comment.
why didn't the pkgdown workflow run on the last commit?
There was a problem hiding this comment.
The pkgdown workflow didn't run because of the branch targeting:
The workflow is configured to only run on pull requests targeting the main branch (line 10 of pkgdown.yaml: branches: - main).
Based on the PR description ("this PR merges into #163") and the commit history (grafted from test-mcp branch), this PR is targeting another branch (likely test-mcp or a branch related to PR #163), not main.
The workflow WOULD have triggered since .github/workflows/pkgdown.yaml was modified (which matches the paths filter on lines 16-23), but the branch target condition prevents it from running.
|
|
||
| - name: Install rjags | ||
| run: | | ||
| install.packages("rjags", |
There was a problem hiding this comment.
is rjags not already installed by the setup-r-dependencies step?
There was a problem hiding this comment.
No, rjags is not automatically installed by setup-r-dependencies for several reasons:
- rjags is in Suggests, not Imports (line 49 of DESCRIPTION), so it's not a hard dependency
needs: connect, websitedoesn't include all Suggests packages - it installs Imports and VignetteBuilder dependencies- rjags requires special installation from source (
type = "source") to properly link against the JAGS system library
This is why all other workflows (R-CMD-check.yaml line 69-80, test-coverage.yaml line 35-46) also have an explicit "install rjags" step after setup-r-dependencies.
The explicit installation is necessary because:
vignettes/dobson.Rmduseslibrary(rjags)- rjags must be compiled against the JAGS system library installed in the previous step
- setup-r-dependencies would skip it or install a pre-built binary that won't work without JAGS
|
📕 Preview documentation for this PR has been cleaned up. |
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.