Add r.rterm.preferredConsoles for R console selection from PATH#1625
Add r.rterm.preferredConsoles for R console selection from PATH#1625BerriJ wants to merge 1 commit into
Conversation
|
Would it make more sense to make R and radian selectable via an Enum? I recently created the arf console that can be used instead of radian, and I have personally switched from radian. |
This would also work. You mean something like: And then this extension would search the PATH for arf, radian, and r, and use the first it finds? This would be a very flexible solution. |
|
+1 on |
|
Fwiw,
|
|
@randy3k Do you have an idea how to proceed here? I could happily adjust the PR to use arf instead of radian, now that radian is not supported anymore. I'm also not shure if this PR is completely independent from #1684. Maybe you could tell us something about the big picture here. Many thanks in advance :) |
|
We shouldn't reply on radian anymore (python is not really a good platform for development an R console). I am not oppposing to the idea of "prefer arf". Though I am not sure if we want to "hard code" arf at the same time. A setting like "prefer this program if found" may be more useful? |
Add `r.rterm.preferredConsoles` (string array, default `["R"]`), an ordered list of R console executable names to search for on PATH when no explicit terminal path (e.g. `r.rterm.linux`) is set. The first entry found on PATH is used, enabling users to prefer radian, ark, or any other console over plain R without specifying a full path.
Thanks for your feedback. I agree, hardcoding R consoles is not ideal. I updated the PR and now the new setting takes a list of console names that the user prefers. So you can specify for example I'll gladly adjust this further, based on your feebdack. |
This PR will close #1347
It adds a new option
r.rterm.preferredConsoleswhich defaults to ["R"]. You can specify you preferred R consoles like this:The extension will open the first item in that list that it finds on the users
PATH. However, ifr.rterm.linuxis specified, it will use that path (given that this is a more precise setting, I suggest we give precedence to it).Thank you so much for this project. I'm a daily user since many years.
Best,
BerriJ