R in VS Code with Radian

byandell.github.io/DocumentTools

Radian and AI Environments

While you can use the enhanced R tool radian within AI environments, they are not as seamless as Posit’s RStudio. In fact, radian can interfere with the “memory” and operation of these tools.

Files and Setups

export PATH=$PATH:/usr/local/bin/radian

Some useful VS Code Settings for settings.json file:

{
  "r.bracketedPast": true,
  "r.rterm.linux": "/usr/local/bin/radian",
  "r.rterm.mac": "/usr/local/bin/radian",
  "r.rterm.windows": "C:\\Users\\<username>\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\radian.exe",
  "r.alwaysUseActiveTerminal": true,
  "r.rterm.option": [
      "--no-save",
      "--no-restore",
      "--quiet",
      "--r-binary=/usr/local/bin/radian"
  ],
  "r.sessionWatcher": true,
  "r.sessionWatcher.showSavePrompt": false,
  "r.sessionWatcher.showRestartPrompt": false,
  "r.sessionWatcher.showRestartConfirmation": false
}

In the .Rprofile in home directory, add this line:

options(radian.complete_while_typing = FALSE)

This site uses Just the Docs, a documentation theme for Jekyll.