Vscode-r: R:Create R terminal don't work

Created on 15 Jun 2017  Â·  14Comments  Â·  Source: Ikuyadeu/vscode-R

When execute the command R:Create R terminal this don't work, the terminal goes blank, is the same for any other command.

My version:

C:\Users\xxxxx>r
R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit) ...

question

Most helpful comment

@skanskan It's VS Code settings.

  1. Please put F1 key.
  2. And type Preferences: open user settings or Ctrl + ,
  3. You can find r.rterm.windows
    Thank you for using!

All 14 comments

@edarague Thank you for your issue!
Did you set r.rterm.windows to your R.exe path?
Maybe you should set C:\\Program Files\\R\\R-3.3.2\\bin\\x64\\R.exe.

Thank you very much, my error was that the version I have installed is different from the one that was in the vs code configurations, so I created a parameter appropriate to my version number in the user settings. In my case v3.3.2

Where do we set r.rterm.windows?
From VS Code settings?
Or as a system variable?
or how?

@skanskan It's VS Code settings.

  1. Please put F1 key.
  2. And type Preferences: open user settings or Ctrl + ,
  3. You can find r.rterm.windows
    Thank you for using!

Thank you.
Finally that method didn't work for me.
Manually editing the file setting.json on the disk.

I'm not sure, could you restart VS Code?

@Ikuyadeu thanks for your R Extension for VSCode, eventhough you won't maintain it anymore!

I setted the actual R.exe path for windows via configuring "r.rterm.windows" in the "settings.json" file in the user VSCode settings to {"r.rterm.windows": "C:\Program Files\R\R-3.5.1\bin\x64\R.exe"}, but when trying to run a R code in an opened folder i still get the error message "command 'r.runSelection' not found"!

Does your R-Extension support R up to a specific Version?

Thanks for any help!

I am having similar issue to @gregkvas. I have built both, VSCode and R, from sources.
My R is located under /usr/local/src/R/R-3.5.1/bin. Additionally, I have symlinks to R and Rscript in /usr/local/src/R which is added to $PATH. Moreover, I tried solving this as described in #78, however that didn't help.

I have tried manually setting the Rterm: Linux and Rpath: Lsp to both of the paths I mentioned earlier and that did not help as well. I am still getting the "command ... not found".

@tmakowski:

  1. Did you update VSCode to its newest version?
  2. Did you integrate ‘R.exe’ into your Rterm path definition?
  3. Did you restart VSCode?

Setting the Rterm-path in VSCode preferences and simply updating VSCode to its newest version (reloading when done) worked for me to solve the issue “command...not found”...

Installing LSP as described in #78 was’nt needed for me to solve the issue, but brought me a great Language Server with ‘hovering-over’ documentation-windows...

R 3.5.2 and newest VS Code, I still have the problem, and I have set the actual path

gitr
@ohmlovesampere check whether the path is correct in settings

You'll need to open the folder that has R source file.
https://marketplace.visualstudio.com/items?itemName=Ikuyadeu.r

Been awhile but I wanted to provide some help on how I did this, have had error that says "win32 cannot run in windows" and my path was empty or couldn't be found. so here's the steps.

  1. Go to https://cran.r-project.org/bin/windows/base/
  2. Select whichever version suits you but for simplicities sake I am on a Windows machine
  3. During the runtime installation I unchecked 32-bit and only stayed with the 64-bit as the documentation states there could be a conflict if both are installed at the same time
  4. I had an issue locating my path so I knew my Rx64 GUI 4.0.3 traditional terminal could be invoked
  5. so at the ">" i typed the below
    > R.home()
    you can use this too...
    > file.path(R.home("bin"), "R")

Next Steps:

  1. once you're done locating the path on the typical right clicking on the R.exe icon copy and paste the entire path
  2. directly into the VSCode's "R>Rterm: windows" setting field
  3. as an example mine was found along with my OneDrive as its a practice I've been doing
  4. hope this helps

That was very helpful

Was this page helpful?
0 / 5 - 0 ratings

Related issues

albert-ying picture albert-ying  Â·  5Comments

ShortArrow picture ShortArrow  Â·  4Comments

bdeshon picture bdeshon  Â·  3Comments

Nightwingg picture Nightwingg  Â·  6Comments

renkun-ken picture renkun-ken  Â·  3Comments