Setup R - jean-knapp/tutorials GitHub Wiki
Installing R on Windows
Download R for Windows
Installing Language Server
Navigate to the installation directory of R and run R.exe. It's usually under C:\Program Files\R\R-{version}\bin
Type the following command:
install.packages("languageserver")
Say yes for everything.
Installing R on VSCode
Download this extension for VSCode.
https://marketplace.visualstudio.com/items?itemName=REditorSupport.r
Adding R to PATH
In the Start Menu, search for Edit the Environment Variables.
Click Environment Variables and edit Path. Add the directory of R.