Skip to content

Commit 86b5941

Browse files
Fix URL (#45)
1 parent 16acfe7 commit 86b5941

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

language-extensions/R/build/windows/restore-packages.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ IF "%R_HOME%" == "" (
2121
REM
2222
SET R_HOME=%DEFAULT_R_HOME%
2323
MKDIR %DEFAULT_R_HOME%
24-
powershell -Command "Invoke-WebRequest https://cran.microsoft.com/bin/windows/base/old/%R_VERSION%/%R_INSTALLER% -OutFile %DEFAULT_R_HOME%\%R_INSTALLER%"
24+
powershell -Command "Invoke-WebRequest https://cran.r-project.org/bin/windows/base/old/%R_VERSION%/%R_INSTALLER% -OutFile %DEFAULT_R_HOME%\%R_INSTALLER%"
2525
CALL :CHECKERROR %ERRORLEVEL% "Error: Failed to download R-%R_VERSION%." || EXIT /b %ERRORLEVEL%
2626
%DEFAULT_R_HOME%\%R_INSTALLER% /VERYSILENT /DIR=%DEFAULT_R_HOME%
2727
CALL :CHECKERROR %ERRORLEVEL% "Error: Failed to install R-%R_VERSION%." || EXIT /b %ERRORLEVEL%
@@ -38,9 +38,9 @@ REM Get RTools35 for mingw32-make and rtools40 for g++ v8.3.0 that works with C+
3838
REM
3939
SET RTOOLS_HOME=%PACKAGES_ROOT%\Rtools
4040
MKDIR %RTOOLS_HOME%
41-
powershell -Command "Invoke-WebRequest https://cran.microsoft.com/bin/windows/Rtools/Rtools35.exe -OutFile %RTOOLS_HOME%\Rtools35.exe"
41+
powershell -Command "Invoke-WebRequest https://cran.r-project.org/bin/windows/Rtools/Rtools35.exe -OutFile %RTOOLS_HOME%\Rtools35.exe"
4242
CALL :CHECKERROR %ERRORLEVEL% "Error: Failed to download Rtools3.5." || EXIT /b %ERRORLEVEL%
43-
powershell -Command "Invoke-WebRequest https://cran.microsoft.com/bin/windows/Rtools/rtools40-x86_64.exe -OutFile %RTOOLS_HOME%\rtools40.exe"
43+
powershell -Command "Invoke-WebRequest https://cran.r-project.org/bin/windows/Rtools/rtools40-x86_64.exe -OutFile %RTOOLS_HOME%\rtools40.exe"
4444
CALL :CHECKERROR %ERRORLEVEL% "Error: Failed to download Rtools4.0." || EXIT /b %ERRORLEVEL%
4545

4646
REM Install RTools

0 commit comments

Comments
 (0)