• Articles
  • Tutorials
  • Interview Questions

How to Install RStudio on Windows, Mac, and Linux

Steps to Install R and RStudio

Follow these procedures to  install R and RStudio in your system.

Step 1 – Install R

Download the R installer here – Download R

Download R

Run the installer. Default settings are fine. If you do not have admin rights on your laptop, then ask you local IT support. In that case, it is important that you also ask them to give you full permissions to the R directories. Without this, you will not be able to install additional packages later

Step 2 – Install RStudio

Download RStudio here.

Download Rstudio

  • Once the installation of R has completed successfully (and not before), run the RStudio installer.
  • If you do not have administrative rights on your laptop, step 2 may fail. Ask your IT Support or download a pre-built zip archive of RStudio which doesn’t need installing. The link for this is towards the bottom of the download page
    • Download the appropriate archive for your system (Windows/Linux only – the Mac version can be installed into your personal “Applications” folder without admin rights).
    • Double clicking on the zip archive should automatically unpack it on most Windows machines.

Get 100% Hike!

Master Most in Demand Skills Now !

Step 3 – Check that R and RStudio are working

  • Open RStudio. It should open a window that looks similar to image 3 below.
  • In the left hand window, by the ‘>’sign, type ‘4+5’(without the quotes) and hit enter. An output line reading ‘[1] 9’ should appear. This means that R and RStudio are working.
  • If this is not successful, contact us or your local IT support for further advice Figure 3. Running R with RStudio

R and RStudio

Step 4 – Install R packages required for the workshop

Click on the tab ‘ Packages’ then ‘Install’ as shown in Image 4. Or Tools -> Install packages.

Install RStudio

Install the following packages: mixOmics version 6.1.0, mvtnorm, RColorBrewer, corrplot, igraph. For apple mac users, if you are unable to install the mixOmics imported library rgl, you will need to install the XQuartz software first https://www.xquartz.org/
Check that the packages are installed by typing ‘library(mixOmics)’ (without the quotes) in the prompt and press enter.

Check RStudio Installation

Then type ‘sessionInfo()’ and check that mixOmics version 6.1.0 has been installed.

That’s it, let’s get started!

Understand Data Science Better with our Data Science Certification. Enroll now!

Course Schedule

Name Date Details
Data Science Course 22 Jun 2024(Sat-Sun) Weekend Batch
View Details
Data Science Course 29 Jun 2024(Sat-Sun) Weekend Batch
View Details
Data Science Course 06 Jul 2024(Sat-Sun) Weekend Batch
View Details

About the Author

Head of Data Engineering & Science

As a head of Data Engineering and Science at Chargebee, Birendra is leading a team of 50+ engineers, specializing in high-scale data and ML platforms. Previously, held key roles at Razorpay and as CTO, with extensive experience in Big Data, ML, and SAAS architecture. Recognized for 85+ contributions to tech publications and patents.