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.
I’m using Windows though I may eventually move to my Linux Mint machine.
- Navigate to https://cran.r-project.org/
- Choose the base install (has a note “if you’re installing R for the first time).
- Presently, R-4.1.0.
- Choose the “User Installation”, and left all aspects of install options selected
- Message Translations
- 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.
Installing R Studio
- Navigate to https://www.rstudio.com/products/rstudio/
- Installed RStudio Desktop 1.4.1717 for Windows 10
- 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:
I prefer a dark theme, so set them (via Tools > Global Options > Appearance), and ran a quick Hello World demo.
R and R studio are now installed and validated by running this script.
Categories: R Programming