aaronpeikert / repro

Easy Setup of a Reproducible Workflow
GNU General Public License v3.0
33 stars 7 forks source link

Make on windows works in Powershell/CMD/with R's system("make -h"), but not in RStudio terminal #64

Open aaronpeikert opened 3 years ago

aaronpeikert commented 3 years ago

@hille identified it the root cause of #61 and supplied the following helpful links:

https://community.rstudio.com/t/0-main-cut-17860-c-rtools40-usr-bin-cut-exe-fatal-error-cygheap-base-mismatch-detected-0x180331408-0x180316408/64810/4 https://github.com/rstudio/rstudio/pull/6828 https://github.com/rstudio/rstudio/issues/7493

hille commented 3 years ago

For me, I think I solved the issue by defining a custom shell within RStudio: Go to Tools, Global Options, Terminal tab, change 'New terminals open with:' to 'Custom', and then put the path to rtools bash.exe (e.g. C:/rtools40/usr/bin/bash.exe) It did not work for me when using a different bash.exe (e.g. C:\Users\XYZ\AppData\Local\Programs\Git\usr\bin\bash.exe)