Skip to content

Commit 33d9fe4

Browse files
committed
Another setup-r rtools version fix
[ci skip]
1 parent 8b4732b commit 33d9fe4

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/rtools.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# the default is rtools40 here
1717
- { r: 'release' }
1818
# manually select rtools42
19-
- { r: 'release', rtools-version: "42" }
19+
- { r: 'release', rtools-version: '42' }
2020
# defaults to rtools43
2121
- { r: 'devel' }
2222

@@ -33,7 +33,6 @@ jobs:
3333
with:
3434
r-version: ${{ matrix.config.r }}
3535
rtools-version: ${{ matrix.config.rtools-version }}
36-
http-user-agent: ${{ matrix.config.http-user-agent }}
3736
use-public-rspm: true
3837

3938
- name: "Check what version of rtools is installed"

setup-r/lib/installer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ function acquireRWindows(version) {
401401
function acquireRtools(version, rversion) {
402402
return __awaiter(this, void 0, void 0, function* () {
403403
const versionNumber = parseInt(version.substring(0, 2));
404-
const rtools43 = versionNumber >= 42;
404+
const rtools43 = versionNumber >= 43;
405405
const rtools42 = !rtools43 && versionNumber >= 41;
406-
const rtools40 = !rtools42 && versionNumber >= 40;
406+
const rtools40 = !rtools43 && !rtools42 && versionNumber >= 40;
407407
const rtools3x = !rtools43 && !rtools42 && !rtools40;
408408
var downloadUrl, fileName;
409409
if (rtools3x) {

setup-r/src/installer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,9 @@ async function acquireRWindows(version: string): Promise<string> {
379379

380380
async function acquireRtools(version: string, rversion: string) {
381381
const versionNumber = parseInt(version.substring(0, 2));
382-
const rtools43 = versionNumber >= 42;
382+
const rtools43 = versionNumber >= 43;
383383
const rtools42 = !rtools43 && versionNumber >= 41;
384-
const rtools40 = !rtools42 && versionNumber >= 40;
384+
const rtools40 = !rtools43 && !rtools42 && versionNumber >= 40;
385385
const rtools3x = !rtools43 && !rtools42 && !rtools40;
386386
var downloadUrl, fileName;
387387
if (rtools3x) {

0 commit comments

Comments
 (0)