R | How to set up VSCode extension
Although RStudio [1] is the most common IDE for R, it is very much possible to use Visual Studio Code as the editor of choice for R code.
To do so most effectively, download the VSCode extension for R [2], and follow the setup instructions in the page. In addition, it may be necessary to do the following:
Install the
jsonlite
package in the R library you are usingIn the settings for the extension, set the
Rpath
andRterm
values to the path of the R executable [3], if they are not automatically populated
Resources: