Installing R and R Studio

I spend a lot of time learning and practicing with new languages, and I usually keep my notes in personal Word documents with associated solutions in private Git and/or TFS repositories.

My current goal is to learn R, and with this language I’m going to share my notes on the Westmorr blog. I can’t predict how things are going to turn out, but I expect there will be a few dozen short blog posts like this one. The subject matter will be focused and the writing style will be reference and “notes” oriented. I’m not going to alter content to improve my SEO score or focus on readability. Instead, these posts will reflect my note taking style and will be for reference as I start to work on projects requiring this language. Ultimately, I hope they also help another developer who is looking for useful and concise notes on getting started and ramping-up on R. The first step is installing R and R Studio.

Installing R

I’m using Windows though I may eventually move to my Linux Mint machine.

  1. Navigate to https://cran.r-project.org/
  2. Choose the base install (has a note “if you’re installing R for the first time).
  3. Presently, R-4.1.0.
  4. Choose the “User Installation”, and left all aspects of install options selected
    • Core
    • 32-bit
    • 64-bit
    • Message Translations
  5. Chose all other defaults

After the installation is complete, I find “R” 32 and 64 bit options in my PC applications. Launching the 64-bit application in-turn launches the 64 bit console.

R is successfully installed.

R Console

Installing R Studio

  1. Navigate to https://www.rstudio.com/products/rstudio/
  2. Installed RStudio Desktop 1.4.1717 for Windows 10
  3. Chose all default options

I saw some literature on the site about VS Code support. I may revisit that later because I work extensively in that IDE.

With that, the R Studio IDE is now installed:

R Studio IDE

I prefer a dark theme, so set them (via Tools > Global Options > Appearance), and ran a quick Hello World demo.

R Programming Hello World

R and R studio are now installed and validated by running this script.



Categories: R Programming

Tags: ,

3 replies

Trackbacks

  1. R Scatter Plot with GGPlot2 - Westmorr Consulting
  2. R Programming While and For Loops - Westmorr Consulting
  3. R Vector Operations - Westmorr Consulting

Leave a Reply

%d bloggers like this: