Hearing about R and RStudio for the first time can easily make you assume the two are either the same or related in some way. For starters, R can sound like a distinct version of RStudio. This confusion is understandable because, besides sounding similar, installing R on your machine creates the need for RStudio. It is possible to use R without RStudio, but you can’t run RStudio without R installed in your system.
These two aren't necessarily the same, here are the major differences between R and RStudio.
Yes, R lets you run computations while RStudio provides the interface. R is the programming language that will help you to run all the statistical computations you need. RStudio, on another hand, is an IDE (integrated development environment) that gives you the interface you need. Basically, if R were the engine of the car, then RStudio would be the dashboard – you only use RStudio to work with what R avails for you.
This means RStudio is more elaborate compared to R. As it is traditional with IDEs, you will find yourself navigating between RStudio's source code editor, debugger, and build automation tools. On another hand, R, a programming language, is focused on nothing but what your code can and can't do.
You must not use RStudio IDE with R. The programmer can choose to run R in the console and without RStudio. Several other options can substitute RStudio on R:
However, RStudio is just the right IDE you need for R and it goes an extra length to make things a whole lot easier for you. RStudio is still the most powerful IDE you can ever use with R, thanks partly to its emphasis on data-friendly environments.
When dealing with Windows OS, we are used to just one file extension for all executable files – the .exe extension. So, this means both RStudio and R for windows come with the .exe extension. However, things are a little different when trying to install these two on Mac OS.
If you are running on macOS, you will download R from www.r-project.org IN the .pkg extension. .Pkg is very much like .zip because it is used on packages used to hold compressed installer files although it has come to be synonymous with applications meant for Mac OS X platforms. The RStudio for Mac OS comes with the .tgz extension instead of .pkg even though it will need to run together with R on Mac OS. The benefit of a TGZ file is that it is a result of applying the GNU Zip (or gzip) compression on your TAR archive, meaning it can be used across any LINUX-based platform, even Android. TAR archives usually don't support compression the same way most other formats do. So, after a few of the parts in the file have been archived into one TAR file, gzip will be applied to reduce the overall file size and ease the process of distribution. This means you can download one RStudio installation file with this extension and install it on any machine running it on a LINUX-based OS.
R is a programming language while RStudio is its IDE. This makes the relationship between these two to be close to that of the engine and the dashboard of your car. You can use R without RStudio, but you can't use RStudio without R. There are a lot of substitute IDEs you can use in place of RStudio. Finally, and more importantly, these two come with two different file formats if you intend to install them on Mac OS.