File tree Expand file tree Collapse file tree 1 file changed +13
-20
lines changed Expand file tree Collapse file tree 1 file changed +13
-20
lines changed Original file line number Diff line number Diff line change 1+
2+
13trigger :
24- master
35
4- resources :
5- repositories :
6- - repository : r-azure-pipelines
7- type : github
8- name : r-lib/r-azure-pipelines
9- endpoint : r-lib
10-
11- parameters :
12- R_LIBS_USER : ' $(Agent.BuildDirectory)/R/library'
13- CRAN : ' https://cloud.r-project.org'
14- coverage : true
15- env : {}
16-
176jobs :
187 - job : Windows
198 timeoutInMinutes : 0
209 cancelTimeoutInMinutes : 10
21- variables :
22- CRAN : ${{parameters.CRAN}}
23- R_LIBS_USER : ${{parameters.R_LIBS_USER}}
24- CI : true
25- ${{ insert }} : ${{ parameters.env }}
2610 pool :
2711 vmImage : ' windows-latest'
28-
12+ # r installation from https://github.com/r-lib/r-azure-pipelines/
2913 steps :
30- - template : templates/r-setup-windows.yml
14+ - pwsh : |
15+ choco install r.project -y --no-progress
16+ Invoke-WebRequest "https://github.com/hannesmuehleisen/choco-rtools/raw/master/rtools.3.5.0.nupkg" -OutFile "..\rtools.3.5.0.nupkg"
17+ choco install rtools -s ..\rtools.3.5.0.nupkg -f -y --no-progress
18+ # Set the timezone
19+ tzutil /s "GMT Standard Time"
20+ displayName: 'Installing R'
21+ - pwsh : |
22+ Write-Host "##vso[task.setvariable variable=PATH]C:\Rtools\bin;C:\Rtools\mingw_64\bin;${env:PATH};C:\Progra~1\R\R-3.6.1\bin"
23+ displayName: 'Setting PATH'
3124 - checkout : self
3225 clean : true
3326 fetchDepth : 5
You can’t perform that action at this time.
0 commit comments