Setup R - jean-knapp/tutorials GitHub Wiki

Installing R on Windows

Download R for Windows

https://cloud.r-project.org/

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

image

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.

image

Click Environment Variables and edit Path. Add the directory of R.