

It assists in writing code, helps to find mistakes 2, structures your workplace and allows for the quick execution of commands. This would be a so-called (integrated) development environment (IDE).Īn IDE 1 facilitates the work with a programming language. Therefore, I recommend to install further software, which makes it easier to work with R. But as you might imagine, this is a rather laborious way to proceed, especially when you are still developing your code. One solution to this problem could be to write several lines of code in a text document, copy and paste them into R for execution. The main challenge is just to write your code and bring it into R’s command line. Your current installation of R is perfectly able to do that. Usually, people want to do much more calculations of a more complex nature, which includes multiple operations and code that goes over many lines. The simple addition of numbers was probably not the main reason why you started to learn R.

Once the installation is finished open R, enter 1+2 into the so-called command line and press return so that you get 1+2 # 3Ĭongratulations, you just did your first calculation in R! You can close the window now… Alternatively, consult the person that put Linux on your system in the first place.

If you use Linux, I trust that you are experienced enough that you can follow the installation instructions on the website.
