A beginner guide to install R and Rstudio yourself.
Nüance-R provides this course to know how to install R and Rstudio on your computer. Check the video tutorial!
Go to: cran.r-project.org
Click on one of the 3 options presented to you on cran-r website that matches your operating system:
For Mac users: Click on “Download R for (Mac) OS X”. Choose the adapted version for your Mac OS X. After downloading, double click on the .pkg file. A window will open and click on “Continue” every time until the complete installation.
For Windows users: Click on “Download R for Windows”. Then click on “base”. Choose the current version available and follow the instructions.
For Linux users: Click on “Download R for Linux”. Then select the right distribution and follow the distribution specific instructions to install R.
Go to the “Installers for Supported Platforms” section at the end of the page and click on the Rstudio right version for your computer.
The download will start. After the downloading is complete, install the application by following the instructions.
Once the installation is complete, open the application as any others.
When you install by yourself R and Rstudio on your computer, you will need some packages to do your analysis.
Many useful R function come in packages, free libraries of code written by R’s active user community. To install an R package, open an R session and type in your console the line of code.
install.packages("<the package's name>")
R will download the package from CRAN, so you’ll need to be connected to the internet. Once you have a package installed, you can make its contents available to use in your current R session by running
library("<the package's name>")
There are thousands of helpful R packages for you to use, but navigating them all can be a challenge. To help you out, we’ve compiled this guide to some of the best. We’ve used each of these, and found them to be outstanding – we’ve even written some of them. But you don’t have to take our word for it, these packages are also some of the top most downloaded R packages.
For attribution, please cite this work as
Warin (2019, July 5). Thierry Warin, PhD: [R Course] How to: Install R and Rstudio on Local. Retrieved from https://warin.ca/posts/rcourse-howto-installrandrstudio/
BibTeX citation
@misc{warin2019[r, author = {Warin, Thierry}, title = {Thierry Warin, PhD: [R Course] How to: Install R and Rstudio on Local}, url = {https://warin.ca/posts/rcourse-howto-installrandrstudio/}, year = {2019} }