Chapter 3 Visual Studio Code

3.1 Basics and Resources

Visual Studio Code (VS Code) is another popular IDE for programming in pretty much all languages. With the recent development of GitHub Copilot (X), it makes VS Code a very attractive platform. Here is a place to get things started. Please note that in Windows, running the applications as Administrator is probably needed to install related components.

To get things working, you only need to

  • Install R
  • Install VS Code
  • Install R Extension in VS Code
  • Install the languageserver package install.packages("languageserver")

To install radian (for interactive R terminal), you need to

  • Install Python and pip (if you have Anaconda, that should be included already)
  • Use pip3 install -U radian to install radian
  • Go to settings in VS Code, and find r.path, add your radian.exe file path to it