Skip to content

Conversation

avinab-neogy
Copy link
Collaborator

Enables dynamic switching between release and r-devel help files via which_r

Resolves issue #228 by showing correct HTML help for chosen R version

…sion switching

- which_r: now updates both r.rterm.linux and r.rpath.linux in settings.json
- which_r: enhances reload instructions for users
- docs: clarify R switching and help reload steps
- devcontainer.json: update to ensure compatibility with new workflow
…ynamic R version selection"

This reverts commit c9ba137.
@avinab-neogy avinab-neogy self-assigned this Jul 15, 2025
@avinab-neogy avinab-neogy requested a review from hturner July 15, 2025 19:37
@avinab-neogy
Copy link
Collaborator Author

I had a doubt while working on this and testing this out @hturner ,
In devcontainer.json, is it necessary to set

"r.rpath.linux": "/usr/bin/R",
"r.rterm.linux": "/usr/bin/R",

or will VS Code automatically detect the default R path if these are omitted?

When these settings are omitted, VS Code’s R extension will search the system PATH and use the default R executable (almost always /usr/bin/R on Linux) unless one has multiple installations and needs to specify a particular one.

@hturner
Copy link
Member

hturner commented Jul 16, 2025

I think it is best to explicitly set "r.rpath.linux" and "r.rterm.linux" so we know exactly what's going on. It looks like that is what the which_r script is doing here, so I'm happy to merge this in.

@hturner hturner merged commit 46b8b6c into devel Jul 16, 2025
1 check passed
@hturner hturner deleted the feature/fix-html-help-r-devel branch July 16, 2025 09:57
@avinab-neogy
Copy link
Collaborator Author

Got it, Thanks @hturner !

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