Skip to content

Commit

Permalink
Use older R version for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rikardn committed Jun 3, 2024
1 parent 6e28f82 commit 86062de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ jobs:
- name: Download R
uses: suisei-cn/actions-download-file@v1
with:
url: https://cran.r-project.org/bin/windows/base/old/4.4.0/R-4.4.0-win.exe
url: https://cran.r-project.org/bin/windows/base/old/4.3.3/R-4.3.3-win.exe
target: downloads/
- name: Download Python
uses: suisei-cn/actions-download-file@v1
Expand Down Expand Up @@ -393,7 +393,7 @@ jobs:
- name: Move pandoc
run: mv installer/pandoc-2.5-windows-i386/pandoc.exe installer/strawberry/perl/bin
shell: bash
- name: Install Rtools40
- name: Install Rtools42
shell: pwsh
run: |
if(Test-path c:\\rtools42){
Expand All @@ -403,12 +403,12 @@ jobs:
}
echo "c:\\rtools42\\usr\\bin" >> $GITHUB_PATH
- name: Install R
run: downloads\R-4.4.0-win.exe /VERYSILENT /DIR="installer\R"
run: downloads\R-4.3.3-win.exe /VERYSILENT /DIR="installer\R"
shell: cmd
- name: Install renv
run: |
md installer\Rlib
installer\R\bin\x64\Rscript.exe -e "install.packages('renv', lib='installer/Rlib', repos='https://mran.microsoft.com/snapshot/2024-06-03/')"
installer\R\bin\x64\Rscript.exe -e "install.packages('renv', lib='installer/Rlib')"
shell: cmd
- name: Install R dependencies
run: installer\R\bin\x64\Rscript.exe -e ".libPaths('installer/Rlib'); options(renv.config.copy.method='R'); options(renv.consent=TRUE); renv::settings$use.cache(FALSE); renv::restore(library='installer/Rlib', lockfile='PsN-Source/PsNR/renv.lock'); Sys.setenv(TZ='Europe/Berlin', LC_TIME='C', LC_MONETARY='C'); remotes::install_local('PsN-Source/PsNR', lib='installer/Rlib', repos=NULL, dependencies=F, INSTALL_opts=c('--no-multiarch'))"
Expand Down

0 comments on commit 86062de

Please sign in to comment.