- Step 1) Enter command to install R Studio in the Anaconda prompt. Step 2) You will be shown a list of packages that will be installed. Step 3) R Studio will be installed.
- Manually install (Recommended if you don't care about the old packages) The first method is to.
- Run R studio Click on the Packages tab in the bottom-right section and then click on install. The following dialog box will appear In the Install Packages dialog, write the package name you want to install under the Packages field and then click install.
R & RStudio Setup
In this tutorial, you will download and install
R
& RStudio
on your computer. The R
& RStudio
installation instructions below were adapted from Software Carpentry.Learning Objectives
At the end of this activity, you will:
- Be able to download and install
R
andRstudio
on your laptop.
Windows
- Run the
.exe
file that was downloaded in the step above. - Under Installers select RStudio current version ## - Windows XP/Vista/7/8/10.
- Double click the file to install it.
Go to this website. If your mac is OS X 10.11 and higher (this should be the case for most of you), click the R-3.5.1.pkg link. If your mac is OS X 10.9 or 10.10, click the R-3.3.3.pkg link. After clicking on the link, the file (package installer) will be downloaded onto your computer.
Once
R
and RStudio
are installed, open RStudio
to make sure that you don’t get any error messages.Mac OS X
- Go to CRAN and click on Download R for (Mac) OS X.
- Select the
.pkg
file for the version of OS X that you have and the file will download. - Double click on the file that was downloaded and
R
will install. - Go to the RStudio Download page.
- Under Installers select RStudio current version ## - Mac OS X 10.6+ (64-bit) to download it.
- Once it’s downloaded, double click the file to install it.
Once
R
and RStudio
are installed, open RStudio
to make sure it works and you don’t get any error messages.Linux
R
is available through most Linux
package managers. You can download the binary files for your distribution from CRAN. Or you can use your package manager (e.g. for Debian/Ubuntu run sudo apt-get install r-base
and for Fedora run sudo yum install R
).- To install
RStudio
, go to the RStudio Download page. - Under Installers select the version for your distribution.
- Once it’s downloaded, double click the file to install it.
Once
R
and RStudio
are installed, open RStudio
to make sure that it works and there are no errors when you open it.To Install R
- Open an internet browser and go to www.r-project.org.
- Click the 'download R' link in the middle of the page under 'Getting Started.'
- Select a CRAN location (a mirror site) and click the corresponding link.
- Click on the 'Download R for (Mac) OS X' link at the top of the page.
- Click on the file containing the latest version of R under 'Files.'
- Save the .pkg file, double-click it to open, and follow the installation instructions.
- Now that R is installed, you need to download and install RStudio.
To Install RStudio
- Go to www.rstudio.com and click on the 'Download RStudio' button.
- Click on 'Download RStudio Desktop.'
- Click on the version recommended for your system, or the latest Mac version, save the .dmg file on your computer, double-click it to open, and then drag and drop it to your applications folder.
To Install the SDSFoundations Package
- Download SDSFoundations to your desktop (make sure it has the '.tgz' extension).
- Open RStudio.
- Click on the Packages tab in the bottom right window.
- Click 'Install.'
- Select install from 'Package Archive File.'
- Select the SDSFoundations package file from your desktop.
- Click install. You are done! You can now delete the SDSpackage file from your desktop.
To Install R:
- Open an internet browser and go to www.r-project.org.
- Click the 'download R' link in the middle of the page under 'Getting Started.'
- Select a CRAN location (a mirror site) and click the corresponding link.
- Click on the 'Download R for Windows' link at the top of the page.
- Click on the 'install R for the first time' link at the top of the page.
- Click 'Download R for Windows' and save the executable file somewhere on your computer. Run the .exe file and follow the installation instructions.
- Now that R is installed, you need to download and install RStudio.
To Install RStudio
- Go to www.rstudio.com and click on the 'Download RStudio' button.
- Click on 'Download RStudio Desktop.'
- Click on the version recommended for your system, or the latest Windows version, and save the executable file. Run the .exe file and follow the installation instructions.
How To Download R And Rstudio For Mac
To Install the SDSFoundations Package
How To Download R Studio For Mac
- Download SDSFoundationsto your desktop (make sure it has the '.zip' extension).
- Open RStudio.
- Click on the Packages tab in the bottom right window.
- Click 'Install.'
- Select install from 'Package Archive File.'
- Select the SDSFoundations package file from your desktop.
- Click install. You are done! You can now delete the SDSpackage file from your desktop.