Skip to content

R path not working: S{userHome}\scoop\apps\r\current\bin\R.exe #196

@mathiasleroy

Description

@mathiasleroy

I have R installed with scoop and everything works fine with the R extension.
the rpath in settings is:

"r.rpath.windows": "${userHome}\\scoop\\apps\\r\\current\\bin\\R.exe",

and this path is totally correct,
proof of that is that works with R extension: I can run R files with ctrl+enter or ctrl+shift+s to run code in the terminal.

But with R debugger i get this error:

R path not working:
S{userHome}\scoop\apps\r\current\bin\R.exe
(Can be changed in setting r.rpath.XXX)

Image

I tried replacing \\ with / and also tried

"r.rpath.windows": "${env:USERPROFILE}\\scoop\\apps\\r\\current\\bin\\R.exe",

is the issue from ${userHome}?
or can someone confirm that this variable works?

this could be duplicate of #155, but i had the impression it was slightly different.

EDIT: I can't use absolute path because my vscode settings are synced on different machines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions