vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

R extension warnings: system cannot find the path specified and Failed to get list of R functions

Open lporrasm opened this issue 2 years ago • 3 comments

Describe the bug R extension of vs code reports two warning notifications every time that my cursor moves over a R code ,that say:

  1. The system cannot find the path specified. 2.Failed to get list of R functions. Make sure that jsonlite is installed and r.rpath.windows points to a valid R executable.

I can still run R code, but those warnings are annoying and I don't know if something is wrong that I'm not noticing. I already have the jsonlite package installed in R and R path set on the vs code settings.

To Reproduce Steps to reproduce the behavior:

  1. Open or write any R script
  2. Move the cursor over any function of the code.
  3. See error

Can you fix this issue by yourself? (We appreciate the help)

No

(If applicable) Please attach setting.json

{
    "workbench.colorTheme": "Visual Studio Dark",
    "[python]": {
        "editor.formatOnType": true
    },  
    "files.associations": {
        "*.rmd": "markdown"
    },
    "r.bracketedPaste": true,
    "r.rterm.windows": "C:\\Users\\Dell\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\radian.exe",
    "r.rpath.windows": "C:\\R\\R-4.2.2\\bin\\x64\\R.exe"
}

Expected behavior I excpected to be able to work with R in vs code

Screenshots If applicable, add screenshots to help explain your problem. image

Environment (please complete the following information):

  • OS: Windows (64 bits)
  • VSCode Version: 1.75.1
  • R Version: 4.2.2
  • vscode-R version: 2.7.1

Additional context Please, help. I will aprecciate it

lporrasm avatar Feb 21 '23 23:02 lporrasm

try to set r.rpath.windows in the extensions in vscode, make sure it point to the R execute

jiangfenglyu avatar Mar 10 '23 16:03 jiangfenglyu

Indeed it is pointed to the right path: r.rpath.windows": "C:\R\R-4.2.2\bin\x64\R.exe but still doesn't work

lporrasm avatar Mar 10 '23 17:03 lporrasm

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Mar 10 '24 01:03 github-actions[bot]