-
Notifications
You must be signed in to change notification settings - Fork 0
[WIP] Fix pkgdown website rendering issues #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,8 +6,6 @@ | |
| # more info: https://github.com/rstudio/education-workflows/tree/main/examples#deploy-pkgdown-to-github-pages-with-pr-previews-and-tagged-versions | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| types: | ||
| - opened | ||
| - reopened | ||
|
|
@@ -67,6 +65,11 @@ jobs: | |
| with: | ||
| tinytex: true | ||
|
|
||
| - name: Install JAGS | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y jags | ||
|
|
||
| - uses: r-lib/actions/setup-r@v2 | ||
| with: | ||
| use-public-rspm: true | ||
|
|
@@ -79,6 +82,19 @@ jobs: | |
| extra-packages: | | ||
| local::. | ||
| r-lib/pkgdown | ||
|
|
||
| - name: Install rjags | ||
| run: | | ||
| install.packages("rjags", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is rjags not already installed by the setup-r-dependencies step?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, rjags is not automatically installed by setup-r-dependencies for several reasons:
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:
|
||
| repos = "https://cloud.r-project.org", | ||
| type = "source", | ||
| verbose = TRUE) | ||
| withr::local_options(warn = 2) | ||
| library(rjags) | ||
| library(runjags) | ||
| runjags::findJAGS() | ||
| runjags::testjags() | ||
| shell: Rscript {0} | ||
|
|
||
| # If events is a PR, set subdir to 'preview/pr<pr_number>' | ||
| - name: "[PR] Set documentation subdirectory" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why didn't the pkgdown workflow run on the last commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pkgdown workflow didn't run because of the branch targeting:
The workflow is configured to only run on pull requests targeting the
mainbranch (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.yamlwas modified (which matches thepathsfilter on lines 16-23), but the branch target condition prevents it from running.