Skip to content

Prefer rPath from PATH#649

Merged
renkun-ken merged 1 commit intoREditorSupport:masterfrom
ManuelHentschel:rPath
May 29, 2021
Merged

Prefer rPath from PATH#649
renkun-ken merged 1 commit intoREditorSupport:masterfrom
ManuelHentschel:rPath

Conversation

@ManuelHentschel
Copy link
Copy Markdown
Member

What problem did you solve?

This PR changes the order in which the extension tries to find an R path on windows.

I think it makes sense to prefer PATH over the registry since this is more transparent and makes it easier to switch between R versions systemwide (i.e. normal terminals and vscode-R).

How can I check this pull request?

Leave r.rterm.windows empty, have different r paths in the PATH environment variable and registry, and run R: create R Terminal

Copy link
Copy Markdown
Member

@renkun-ken renkun-ken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PATH taking the highest precedence in the determination of R path makes good sense.

@renkun-ken
Copy link
Copy Markdown
Member

Are you interested in putting up a PR to also update vscode-r-lsp util.ts so that they are consistent in finding R path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants