posit-dev / ark

Ark, an R kernel
MIT License
177 stars 15 forks source link

Add `r_command()` for executing commands over `R` and `R.bat` #599

Closed DavisVaughan closed 1 month ago

DavisVaughan commented 1 month ago

Addresses https://github.com/posit-dev/positron/issues/4831

We now iterate over both Command::new("R") and Command::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 as R.bat rather than R.exe