As a data science major, most of my work with data-science (university or side-project) happens with R and Python. I write R in the traditional R console while all my other projects are done in VSCode. So I wanted to add R to my VSCode workspace.😉
When I searched the internet on how to do that, to my awe there was no article or YouTube video which tells how. I only found one article by Ken Run in which he describes his story and recommends his tools but not on how we could set up the environment.( Also many errors popped up while doing it his way )😓
So I searched the Internet and Stack Overflow about this and I wanted to write about it so anyone who is looking for instructions, can find it right away.🥳😎
Firstly run the following command in your traditional R console:
install.packages(“languageserver”)
Install the following extensions
This extension integrates shortcuts and other key-bindings to run the code directly in the workspace or editor. You can view your environment and also see dataframes with a single click.
2. R LSP Client by REditorSupport
This extension provides linting, autocomplete and function signatures along with proper function definitions and information. This extension helps you autocomplete the function parameters by hinting the parameter names and types. It also gives intelligent suggestions on the scope of the variables in custom functions that you define.
#data-science #data-tools #data-analytics #data analysis