We now iterate over both Command::new("R") and Command::new("R.bat") and either:
Exit on the first success
Or return the error of the last failure if all fail
The main win here is being able to run cargo test out of the box on Windows when you have a Rig version of R installed, which puts R on the PATH as R.bat rather than R.exe
Addresses https://github.com/posit-dev/positron/issues/4831
We now iterate over both
Command::new("R")
andCommand::new("R.bat")
and either:The main win here is being able to run
cargo test
out of the box on Windows when you have a Rig version of R installed, which puts R on the PATH asR.bat
rather thanR.exe