Skip to content

Commit

Permalink
setup-r fix for rtools version selection
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
gaborcsardi committed Jan 9, 2023
1 parent 39e040f commit 8b4732b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup-r/lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ function acquireRtools(version, rversion) {
const rtools43 = versionNumber >= 42;
const rtools42 = !rtools43 && versionNumber >= 41;
const rtools40 = !rtools42 && versionNumber >= 40;
const rtools3x = !rtools42 && !rtools40;
const rtools3x = !rtools43 && !rtools42 && !rtools40;
var downloadUrl, fileName;
if (rtools3x) {
fileName = util.format("Rtools%s.exe", version);
Expand Down
2 changes: 1 addition & 1 deletion setup-r/src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ async function acquireRtools(version: string, rversion: string) {
const rtools43 = versionNumber >= 42;
const rtools42 = !rtools43 && versionNumber >= 41;
const rtools40 = !rtools42 && versionNumber >= 40;
const rtools3x = !rtools42 && !rtools40;
const rtools3x = !rtools43 && !rtools42 && !rtools40;
var downloadUrl, fileName;
if (rtools3x) {
fileName = util.format("Rtools%s.exe", version);
Expand Down

0 comments on commit 8b4732b

Please sign in to comment.