Skip to content
Merged
Changes from all commits
Commits
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
28 changes: 2 additions & 26 deletions .github/workflows/rtools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
run: |
irm https://r-lib.github.io/rig/install.ps1 | iex
"$env:USERPROFILE\.local\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
# rig's R/Rscript quick links; the .exe installer used to add this
rig system dirs --binary | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Remove pre-installed R
run: |
Expand All @@ -47,23 +49,9 @@ jobs:
- name: Install Rtools
run: |
rig rtools add

- name: Put R on the path
run: |
$rver = (rig list --json).replace("\", "\\") | jq -r .[0].name
rig default $rver
rig system make-links
rig ls
rig system rtools ls

- name: Configure RSPM
run: |
writeLines(
"options(repos = c(RSPM = 'https://packagemanager.posit.co/cran/latest'))",
"~/.Rprofile"
)
shell: Rscript {0}

- uses: actions/checkout@v4
- uses: r-hub/actions/debug-shell@v1
- uses: r-lib/actions/setup-r-dependencies@v2
Expand All @@ -84,18 +72,6 @@ jobs:
$file = (dir pkgbuild_*.tar.gz).name
RS CMD INSTALL $file

- name: Vanilla
run: |
if (getRversion() >= "4.2.0") {
if (getRversion() < "4.3.0") {
# this might be a bug in R or Rtools or in jpeg
Sys.setenv("PKG_CONFIG_PATH" = "/c/rtools42/x86_64-w64-mingw32.static.posix/lib/pkgconfig")
}
srcjpeg <- download.packages("jpeg", ".")[,2]
install.packages(srcjpeg, repos = NULL, type = "source")
}
shell: Rscript {0}

- name: Rtools finding
run: |
ok <- pkgbuild::find_rtools(debug = TRUE)
Expand Down
Loading