Skip to content

Commit e46e977

Browse files
authored
changed strategy for installing R on AppVeyor (#321)
* [ci] changed strategy for installing R on AppVeyor * moved R version down into .R.appveyor.ps1
1 parent ba62e1f commit e46e977

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R-package/.R.appveyor.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ $env:PATH = "$env:R_LIB_PATH\Rtools\bin;" + "$env:R_LIB_PATH\R\bin\x64;" + "$env
1717
$env:BINPREF = "C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/"
1818

1919
if (!(Get-Command R.exe -errorAction SilentlyContinue)) {
20-
appveyor DownloadFile https://cloud.r-project.org/bin/windows/base/R-3.6.2-win.exe -FileName ./R-win.exe
20+
21+
$R_VER="3.6.2"
22+
appveyor DownloadFile https://cloud.r-project.org/bin/windows/base/old/$R_VER/R-$R_VER-win.exe -FileName ./R-win.exe
2123
Start-Process -FilePath .\R-win.exe -NoNewWindow -Wait -ArgumentList "/VERYSILENT /DIR=$env:R_LIB_PATH\R /COMPONENTS=main,x64"
2224

2325
appveyor DownloadFile https://cloud.r-project.org/bin/windows/Rtools/Rtools35.exe -FileName ./Rtools.exe

0 commit comments

Comments
 (0)