posit-dev / shiny-vscode

Shiny VS Code Extension
https://open-vsx.org/extension/posit/shiny
MIT License
25 stars 7 forks source link

Define path to R executable #61

Closed markstevicgeo closed 2 weeks ago

markstevicgeo commented 2 months ago

Hello, for me it would useful if I could somehow define the path to the R executable on my machine instead of using the RPATH environment variable.

Would it be possible to do something similar to the Python version where it looks for the path definied in the Python Extension? Instead looking for the path definined in the R Extension using the following record in setting.json. "r.rpath.windows":

gadenbuie commented 2 months ago

for me it would useful if I could somehow define the path to the R executable on my machine instead of using the RPATH environment variable. ... [e.g.] r.rpath.windows

Yes I think we could do this! For my own notes, the r.rpath.{windows,mac,linux} settings come from the R Debugger extension.