question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add r.rpath.xxx setting

See original GitHub issue

Currently the extensions vscode-r-lsp, vscode-r-debugger and the help panel from this extension each have a configuration entry where the user needs to specify the path of an R binary.

These are all “backend” usecases where alternatives like radian offer no advantages (as far as I’m aware) over the standard R executable. To make vscode+R easier to configure, I’d suggest introducing a setting r.rpath.xxx, similar to r.rterm.xxx which is supposed to be a “vanilla” R binary that can be used by the mentioned functions/packages.

Advantages include:

  • Users don’t need to make the same configuration in three different places
  • For developers it’s easier to implement new features that need an R process as backend (e.g. an R CMD INSTALL . task)

Disadvantages include:

  • Users cannot configure different R executables for the different extensions/functions.
  • Changing the settings might invalidate existing settings

As a solution to these two issues, I’d suggest introducing a new unified r.rpath.xxx setting, while still honoring the old settings (i.e. to get the R path in the lsp check r.lsp.path -> r.rterm.xxx -> read from path etc.). Even if the package/function specific settings are not specified in the package.json anymore, it is still possible to read their value from existing setting.json files.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:17 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
ManuelHentschelcommented, Nov 25, 2020

How about making these values from each OS path to like one r.path and r.term?

That would be nicer, but might cause problems for people using WSL or syncing settings between different OSs. A discussion about scoping settings by platform has been ongoing for a while now but as far as I’m aware, there is no clean solution for this yet

2reactions
randy3kcommented, Nov 25, 2020

There is a pending discussion of moving vscode-R to REditorSupport so we could merge this repo with vscode-r-lsp: https://github.com/Ikuyadeu/vscode-R/issues/98

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add r.rpath.xxx setting · Issue #464 · REditorSupport/vscode-R
As a solution to these two issues, I'd suggest introducing a new unified r. rpath. xxx setting, while still honoring the old settings...
Read more >
R Debugger - Visual Studio Marketplace
rpath.xxx . Using the Debugger. Launch Mode. Press F5 and select R Debugger as debugger. With the default launch configuration ...
Read more >
Installing R for VSCode issues (R LSP) - Stack Overflow
Step 1: Ensure R is setup right: In your JSON settings, change r.rpath.windows and --r-binary from.
Read more >
Configuration • vscDebugger
Current settings are: r.rpath.XXX (string) : The path to the R executable itself (not just the directory!). Can usually be left empty on...
Read more >
Writing R Extensions - The Comprehensive R Archive Network
The ' NeedsCompilation ' field should be set to "yes" if the package contains native code which needs to be compiled, otherwise "no"...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found