R

Setup and Updating

Install R (https://www.r-project.org/)

  • Top-left, click “CRAN” under Download”, select a local mirror

  • Click “Download R for Windows”, choose “base”

  • Click the download and run the installer

Note: if you want to view “Installation and other instructions”, open in Notepad.

  • May as well exclude the 32-bit files

  • Finish installation, selecting Add Desktop shortcuts.

You will occasionally need to open R to add packages.

Download and install Rstudio (https://rstudio.com/)

  • Download RStudio Desktop for Windows

You will most often run RStudio to use R, so best to put a shortcut on the Taskbar.

Java?

Install java 64-bit from here; https://www.java.com/en/download/manual.jsp

Adding and Updating Packages

Standard packages are installed through R.

Other extensions (RStudio) are installed with Windows installations (running an exe file).

 

About R

Google R style guide

Recommended Packages

Required?

Package/Add-on

Purpose

Notes

Required?

Package/Add-on

Purpose

Notes

No

Rtools - exe( link); see additional instructions

build packages from code (needed for some packages)

Install before any other packages that need compiling (there will be a warning)