Little install help for R in VS code..
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,
- R package in your C:drive (whatever drive you install mine is default C:)
- Python version of 2.4 and above
- VS code editor (this is important)
- 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
- Download R from https://cloud.r-project.org/ for Windows , Linux, MacOs.
- Run R-4.1.0-win.exe file (mine is 4.1.0 version , when you are doing the version may differ)
- After successfully installing R in System, then set R path in user variable (same as Java process).
- In VS code editor, Extensions (ctrl+shift+x) and type R and select R by Yuki Ueda and then install it.
- Open a new terminal and type R and enter R version will be displayed.
- Install R LSP Client for language server.
STEP- 3 : Installing PIP and Radian
- 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)
- In command prompt search pip — version if get an error of not found or not recognized, then you need to install PIP.
- Go to programs and features or appwiz.cpl in Windows + R, then right click on R and select change.
- 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.
- Now again try with pip — version and then try pip install -U radian where the radian console will get installed.
- 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.