In this R Programming Tutorial, You’ll how to set up / use / run R Code on VSCode (Visual Studio Code). VSCode - Visual Studio Code is one of the most popular IDEs available and this tutorial enables you to run R Programming on VSCode (connecting via Language Server Protocol and enriched R Console with Radian).
Video Walkthrough
These are the following steps:
- Make sure you’ve got VSCode (Visual Studio Code) installed on your machine
- Install VSCode R Extension on your VSCode
- Install R LSP Client on your VSCode
- Install
languageserver
on your R Console - Install Radian
- Enable
r.bracketedPaste
for using Radian - Set up r.rpath.windows, r.rpath.mac, r.rpath.linux: Path to Radian (where you
pip
installed radian)

Running R on VSCode 2021
More Details (Credit: Ren Kun) - https://renkun.me/2019/12/11/writing-r-in-vscode-a-fresh-start/