Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

r.rterm.* cannot support Variables Reference #703

Copy link
Copy link
@JianhuiShi

Description

@JianhuiShi
Issue body actions

System: Windows 10.
VSCode: Version 1.5.8.
vscode-R: v 2.0.0 release.

This is my current settings. I create a R terminal by R: Create R terminal and everything works fine.

    "r.rterm.windows": "D:\\Miniconda3\\Scripts\\radian.exe",
    "r.bracketedPaste": true,
    "r.rterm.option": [
        "--r-binary=D:\\Program Files\\R\\R-3.6.3\\bin\\x64\\R.exe"
    ],
    "r.sessionWatcher": true,
    "r.alwaysUseActiveTerminal": true,
    "r.rpath.windows": "D:\\Program Files\\R\\R-3.6.3\\bin\\x64\\R.exe"

But this settings cannot work on another PC, on which R is installed in C:\Program Files\R\R-3.6.3 and radian is installed in C:\Miniconda3\Scripts.
So in the settings I try to substitute "D:" with Environment Variable "SystemDrive" using Variables Reference, see below:

    "r.rterm.windows": "${env:SystemDrive}\\Miniconda3\\Scripts\\radian.exe",
    "r.bracketedPaste": true,
    "r.rterm.option": [
        "--r-binary=${env:SystemDrive}\\Program Files\\R\\R-3.6.3\\bin\\x64\\R.exe"
    ],
    "r.sessionWatcher": true,
    "r.alwaysUseActiveTerminal": true,
    "r.rpath.windows": "${env:SystemDrive}\\Program Files\\R\\R-3.6.3\\bin\\x64\\R.exe"

But it doesn't work. When I try R: Create R terminal , error happens:

Cannot find R client at ${env:SystemDrive}\Miniconda3\Scripts\radian.exe. Please check r.rterm setting.

Can r.rterm.* support Variables Reference and how can I do?
Thanks!

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.