Skip to content

Commit

Permalink
Merge pull request #504 from nealrichardson/rtools-path
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Feb 16, 2022
2 parents 012150a + 4bb164f commit 761250d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions setup-r/lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ function acquireRtools(version) {
core.addPath(`C:\\rtools42\\x86_64-w64-mingw32.static.posix\\bin`);
}
else if (rtools40) {
core.addPath(`C:\\rtools40\\usr\\bin`);
if (core.getInput("r-version").match("devel")) {
core.addPath(`C:\\rtools40\\ucrt64\\bin`);
core.exportVariable("_R_INSTALL_TIME_PATCHES_", "no");
Expand Down
6 changes: 3 additions & 3 deletions setup-r/src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,10 @@ async function acquireRtools(version: string) {
}
}
if (rtools42) {
core.addPath(`C:\\rtools42\\usr\\bin`);
core.addPath(`C:\\rtools42\\x86_64-w64-mingw32.static.posix\\bin`);

core.addPath(`C:\\rtools42\\usr\\bin`);
core.addPath(`C:\\rtools42\\x86_64-w64-mingw32.static.posix\\bin`);
} else if (rtools40) {
core.addPath(`C:\\rtools40\\usr\\bin`);
if (core.getInput("r-version").match("devel")) {
core.addPath(`C:\\rtools40\\ucrt64\\bin`);
core.exportVariable("_R_INSTALL_TIME_PATCHES_", "no");
Expand Down

0 comments on commit 761250d

Please sign in to comment.