Skip to content

Commit

Permalink
attempt r-cmd-check w/renv
Browse files Browse the repository at this point in the history
  • Loading branch information
mjz1 committed Jul 10, 2024
1 parent 44a996d commit 1d9780f
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 6 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/R-CMD-check-renv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:


name: R-CMD-check

permissions: read-all

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: macos-latest, r: 'oldrel'}
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: 'oldrel'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/noble/latest"}
- {os: ubuntu-latest, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/noble/latest"}
- {os: ubuntu-latest, r: 'oldrel-1', rspm: "https://packagemanager.rstudio.com/cran/__linux__/noble/latest"}
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-22.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
- {os: ubuntu-22.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}

steps:
- uses: actions/checkout@v4

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

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

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

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
10 changes: 5 additions & 5 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@
},
"RcppArmadillo": {
"Package": "RcppArmadillo",
"Version": "0.12.8.4.0",
"Version": "14.0.0-1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
Expand All @@ -808,7 +808,7 @@
"stats",
"utils"
],
"Hash": "a535dd90aa8ec9a2e63a8f79b4a1bf43"
"Hash": "a711769be34214addf7805278b72d56b"
},
"RcppEigen": {
"Package": "RcppEigen",
Expand Down Expand Up @@ -3029,15 +3029,15 @@
"Version": "1.0.7.9000",
"Source": "GitHub",
"RemoteType": "github",
"RemoteHost": "api.github.com",
"RemoteUsername": "rstudio",
"RemoteRepo": "renv",
"RemoteRef": "main",
"RemoteSha": "4f911df9c4c5b79d81cbd6be97ef45e29ec9740a",
"RemoteSha": "8c2379948cb5667f47047b0e709c889fd2188feb",
"RemoteHost": "api.github.com",
"Requirements": [
"utils"
],
"Hash": "a82b9e4240adef32062645135eb76964"
"Hash": "73e0d7fbfb3035ae18fa10a9a923a40a"
},
"reshape2": {
"Package": "reshape2",
Expand Down
2 changes: 1 addition & 1 deletion renv/activate.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local({

# the requested version of renv
version <- "1.0.7.9000"
attr(version, "sha") <- "4f911df9c4c5b79d81cbd6be97ef45e29ec9740a"
attr(version, "sha") <- "8c2379948cb5667f47047b0e709c889fd2188feb"

# the project directory
project <- Sys.getenv("RENV_PROJECT")
Expand Down

0 comments on commit 1d9780f

Please sign in to comment.