Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

(you can choose to add
  • , selecting Add Desktop shortcuts

, might be useful).Install ez package (change permissions on Program Files folder)
  • .

You will occasionally need to open R to add packages.

Download and install Rstudio

Gogole R style guide

(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

Deducer is GUI: 

Code Block
install.packages(c("JGR","Deducer","DeducerExtras"))

xlsx, GGally (scatter plots), vcd (categorical data), reshape2,dplyr

Updating R

Easiest is to use the "installr" package, as explained here.

Recommended Packages

Package

Purpose

Notes

Adding and Updating Packages

Standard packages are installed through R.

Image Added

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

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)