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.

r.term.windows will not populate with R.exe file path in settings, will not run R terminal in VS Code

See original GitHub issue

Describe the bug r.term.windows will not populate with R.exe file path in settings, will not run R terminal in VS Code.

To Reproduce Steps to reproduce the behavior:

  1. Go to R Extension
  2. Click on Settings
  3. Scroll down to r.term.windows and enter file path
  4. In the feature contributions tab in the extension, r.term.windows is blank as well as the JSON variable. But, it is populated in the setting tab.

Do you want to fix by self? (I hope your help!) Yes

(If yes,) what kind of help do you want? (e.g. Which file should I fix, Survey (related documents)

(If related)setting.json “r.rterm.windows”:

// R.exe path for windows
"r.rterm.windows": "",  # Here's the issue!

// R path for Mac OS X
"r.rterm.mac": "/usr/local/bin/R",

// R path for Linux
"r.rterm.linux": "/usr/bin/R",

// R command line options (i.e: --vanilla)
"r.rterm.option": [],

// An optional encoding to pass to R when executing the file, i.e. 'source(FILE, encoding=ENCODING)'
"r.source.encoding": "UTF-8",

// Keeping focus when running
"r.source.focus": "editor",

// Use active terminal for all commands, rather than creating a new R terminal
"r.alwaysUseActiveTerminal": false,

// Use bracketed paste mode
"r.bracketedPaste": false,

// Enable R session watcher (experimental)
"r.sessionWatcher": false,

// Delay in milliseconds before sending each line to rterm (only applies if r.bracketedPaste is false)
"r.rtermSendDelay": 8,

Expected behavior R extension will execute R.exe path in extension settings.

Screenshots If applicable, add screenshots to help explain your problem. You can show the keybord contents by pressing F1 and Developer: toggle screencast mode

Environment (please complete the following information):

  • OS: Windows 10
  • VSCode Version: 1.46.1
  • R Version: 3.6.1
  • vscode-R version: 1.4.2

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joeamorosocommented, Aug 15, 2020

Hi, I apologize about my late reply, I was able to get the PATH variable added in my environment and it seems to be working well in VS Code now, thank you

0reactions
assignUsercommented, Aug 13, 2020

@joeamoroso did you manage to get it to work or do you require additional assitance?

Read more comments on GitHub >

github_iconTop Results From Across the Web

r.term.windows will not populate with R.exe file path in settings ...
Describe the bug r.term.windows will not populate with R.exe file path in settings, will not run R terminal in VS Code.
Read more >
Setting Up Visual Studio code to work with R - "win32 can't ...
Locate your R.exe location. Mine is at C:\Program Files\R\R-3.6.2\bin\x64\R.exe; Open VSC, once loaded, press Ctrl + , to open your settings ...
Read more >
R in Visual Studio Code
If you want to run an entire R file, open the file in the editor, and press Ctrl+Shift+S and the file will be...
Read more >
How to run R in Visual Studio Code - InfoWorld
Write and run R code in Visual Studio Code. The vscode-R extension instructions suggests that users open a folder when working in R,...
Read more >
Setup Visual Studio Code to run R on VSCode 2021
In this R Programming Tutorial, You'll how to set up / use / run R Code on VSCode (Visual Studio Code). VSCode -...
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