Little install help for R in VS code..

Abarna Buvaneswari Sundaresan
2 min readJun 15, 2021

In this blog, I am going to illustrate how to install R in vs code. I am not well versed proficient in R programming, I have started my first step. When I tried to install R in VS code I faced many problems, as there were limited videos to install R in Internet and also if we crossed any error during installation, it will be most tedious thing to clear it off.

I have referred https://renkun.me/2019/12/11/writing-r-in-vscode-a-fresh-start/ blog to install R in VS code and other errors which I have overcome I searched in various sites and YouTube videos. If you need to overview above mentioned blog link is there please go through.

Happy Installing!!

STEP- 1 : Prerequisite

Each and every thing we use must statisfy the inbuilt for the system. Like wise to install R in vs code, please check below contents whether it is available in you PC or not,

  1. R package in your C:drive (whatever drive you install mine is default C:)
  2. Python version of 2.4 and above
  3. VS code editor (this is important)
  4. PIP (PIP install Packages- It is a package management system used to install and manage software package written in python)

STEP- 2 : Installing R in System and VS code editor

  1. Download R from https://cloud.r-project.org/ for Windows , Linux, MacOs.
  2. Run R-4.1.0-win.exe file (mine is 4.1.0 version , when you are doing the version may differ)
  3. After successfully installing R in System, then set R path in user variable (same as Java process).
  4. In VS code editor, Extensions (ctrl+shift+x) and type R and select R by Yuki Ueda and then install it.
  5. Open a new terminal and type R and enter R version will be displayed.
  6. Install R LSP Client for language server.

STEP- 3 : Installing PIP and Radian

  1. In order to install radian we must require python. Install python in System and set path to it in system properties (try sysdm.cpl in Run- a command I learned)
  2. In command prompt search pip — version if get an error of not found or not recognized, then you need to install PIP.
  3. Go to programs and features or appwiz.cpl in Windows + R, then right click on R and select change.
  4. Modify page setup open select modify and check PIP checkbox check in or not, if not check in the box then proceed with other steps and click install.
  5. Now again try with pip — version and then try pip install -U radian where the radian console will get installed.
  6. This radian act as like R Studio, in VS code.

That’s all so far , If you come across any other issues please feel free to comment down here.

--

--