In this tutorial session, you will learn to set up the R programming environment in Visual Studio code. Please watch the video till the end, I have explained everything in detail in this tutorial.
We have an R extension for Visual Studio Code that supports extended syntax highlighting, code completion, linting, formatting, interacting with R terminals, viewing data, plots, workspace variables, help pages, managing packages, and working with R Markdown documents.
Let's Begin-
Step 1: Downloading R and Installing on windows 10.
link: https://cloud.r-project.org/bin/windo...
Note : For Windows users, it is recommended to check the Save version number in the registry during installation so that the R extension can find the R executable automatically.
Step 2: Install the language server in R.
install.packages("languageserver")
Step 3: Open VS code then install the 'R extension' for Visual Studio Code.
Step 4: Let's create an R file and start coding.
Example code:
Define 2 vectors
cars - c(1, 3, 6, 4, 9)
trucks - c(2, 5, 4, 5, 12)
Graph cars using a y-axis that ranges from 0 to 12
plot(cars, type="o", col="blue", ylim=c(0,12))
Graph trucks with red dashed lines and square points
lines(trucks, type="o", pch=22, lty=2, col="red")
Create a title with a red, bold/italic font
title(main="Autos", col.main="red", font.main=4)
Step 5: Running R code. ----
**If you found this video tutorial useful and would like to support us, you can do so by buying me a coffee using the below link!
https://buymeacoffee.com/CoolITHelp
#RsetupVisualStudioCode #coolithelp
Информация по комментариям в разработке