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.
Install ez package (change permissions on Program Files folder)
Download and install Rstudio
Gogole R style guideDownload 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
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
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 |
---|---|---|---|
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) |