Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
351b581
Initial plan
Copilot Jan 6, 2026
1f54813
Initialize renv in repository
Copilot Jan 6, 2026
7563ea1
Update workflows to use renv
Copilot Jan 6, 2026
43c953d
fix
d-morrison Jan 6, 2026
18bcaa9
update lock file
d-morrison Jan 6, 2026
826edb8
update wordlist
d-morrison Jan 6, 2026
005c2d2
Add system dependencies and copilot instructions for workflow debugging
Copilot Jan 6, 2026
eaa44ba
Add copilot instructions file for workflow debugging
Copilot Jan 6, 2026
44598ae
Add libfontconfig1-dev system dependency to workflows
Copilot Jan 6, 2026
2f05695
Merge branch 'main' into copilot/configure-renv-in-repo
d-morrison Jan 6, 2026
5c44914
Update copilot instructions with libfontconfig1-dev dependency
Copilot Jan 6, 2026
9536136
Disable renv for spellcheck workflow
Copilot Jan 6, 2026
05f3858
Merge main into copilot/configure-renv-in-repo
Copilot Jan 6, 2026
a3eb15e
Merge branch 'main' into copilot/configure-renv-in-repo
d-morrison Jan 6, 2026
502409a
Add libjpeg-dev system dependency to all workflows
Copilot Jan 6, 2026
6ab1b14
Install local package before rendering Quarto documents
Copilot Jan 6, 2026
024d7d4
Add Quarto rendering instructions to copilot guidelines
Copilot Jan 6, 2026
59a6de4
Merge copilot instructions from hoff-bayesian-statistics repository
Copilot Jan 6, 2026
a6fbff0
use usethis and devtools
d-morrison Jan 6, 2026
03ed40f
Add rjags to renv.lock for Bayesian analysis support
Copilot Jan 6, 2026
cf3873e
Enable renv cache versioning for faster workflow runs
Copilot Jan 6, 2026
8cc4174
Remove cache-version parameter to use default renv caching
Copilot Jan 6, 2026
c0befd9
Merge branch 'main' into copilot/configure-renv-in-repo
d-morrison Jan 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
^renv$
^renv\.lock$
^LICENSE\.md$
^CODE_OF_CONDUCT\.md$
^.*\.Rproj$
Expand Down
1 change: 1 addition & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source("renv/activate.R")
26 changes: 26 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copilot Instructions for RME Repository

## CI/CD and Workflow Debugging

When investigating CI/CD failures, build errors, test failures, or workflow issues:

- **ALWAYS read workflow logs directly** using GitHub MCP tools (`github-mcp-server-get_job_logs`, `github-mcp-server-list_workflow_runs`)
- Do NOT rely on assumptions or generic troubleshooting - examine the actual error output
- Use `failed_only: true` parameter to focus on failed jobs
- Use `return_content: true` to get the actual log content for analysis

## R Package Management

This repository uses `renv` for reproducible R package environments:

- Package versions are locked in `renv.lock`
- All workflows use `r-lib/actions/setup-renv@v2` for dependency installation
- CI dependencies (gh, lintr, purrr, pkgdown) are listed in DESCRIPTION Suggests

## System Dependencies

Some R packages require system-level libraries to compile from source:
- `curl` package requires `libcurl4-openssl-dev`
- `png` package requires `libpng-dev`
- `systemfonts` package requires `libfontconfig1-dev`
- Consider using `rocker/verse` Docker image for workflows to reduce installation requirements
3 changes: 3 additions & 0 deletions .github/workflows/check-spelling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ jobs:
with:
submodules: recursive

- name: Disable renv
run: echo "RENV_CONFIG_AUTOLOADER_ENABLED=FALSE" >> $GITHUB_ENV

- name: Run Spelling Check test
uses: insightsengineering/[email protected]
12 changes: 6 additions & 6 deletions .github/workflows/lint-changed-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:

- uses: r-lib/actions/setup-r@v2

- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::gh
any::lintr
any::purrr
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libpng-dev libfontconfig1-dev

- uses: r-lib/actions/setup-renv@v2

- name: Add lintr options
run: |
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,12 @@ jobs:
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@HEAD
with:
needs: |
connect
website
extra-packages: |
local::.
any::pkgdown
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libpng-dev libfontconfig1-dev

- uses: r-lib/actions/setup-renv@v2

- name: Render
if: github.event.action != 'closed' # skip the build if the PR has been closed
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ jobs:
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@HEAD
with:
needs: |
connect
website
extra-packages: |
local::.
any::pkgdown
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libpng-dev libfontconfig1-dev

- uses: r-lib/actions/setup-renv@v2

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@HEAD
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,12 @@ rsconnect
*.md

**/*.quarto_ipynb

# renv files
renv/library/
renv/local/
renv/cellar/
renv/lock/
renv/python/
renv/sandbox/
renv/staging/
6 changes: 5 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ Suggests:
sjPlot,
equatiomatic,
broom (>= 1.0.8),
broom.helpers (>= 1.20.0)
broom.helpers (>= 1.20.0),
gh,
lintr,
purrr,
pkgdown
RoxygenNote: 7.3.3
License: MIT + file LICENSE
Config/build/copy-method: link
Expand Down
2 changes: 1 addition & 1 deletion dobson-stroke-bayes-Sec-14.6.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ stroke = melt(data=stroke.wide, id.vars=c('Subject','Group'),

```{r}
jags.post <- run.jags(
model = "inst/extdata/stroke.bugs.R",
model = "inst/extdata/stroke.bugs",
data = c(
stroke,
times = max(stroke$time),
Expand Down
4 changes: 0 additions & 4 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ Biostat
Epi
Github
Hua
LaTeX
MathJax
NoDerivatives
NonCommercial
Expand All @@ -12,9 +11,6 @@ UC
Zhou
callout
demstats
gitmodules
github
qmd
recurse
submodule
submodules
Loading