Installation

R statistical software 1 can be downloaded from the Cran website:

Rhttp://cran.r-project.org/

This website contains pre-compiled binaries (recommended for most users) for Windows, Linux and Mac OS X. For installation, follow the instruction on the web site. In addition source codes are available. Source code will need to be compiled on a local computer (only for advanced users). Details are available on the CRAN website.

R has a command driven interface that is versatile and allows flexibility.

The easiest way to use R is with Jupyter Notebook. This common interface allows the use of multiple languages, including R and Python (even in the same notebook). Installation instructions can be found here. It is also easy to share your notebooks online and ask others for help if you have problems.

However, the learning curve with a command driven interface is steep and many users prefer software with a Graphical User Interface (GUI). Two GUIs that are available for R (there are others):

JGRJava GUI for (JGR) / Deducer 2;3: http://www.deducer.org

RStudio-BallRStudio 4: http://www.rstudio.com/

Each has its own advantages and disadvantages. JGR / Deducer 2;3 has an excellent plot builder based on ggplot2 5. RStudio 4 tends to be faster and has a single window split into four, rather than multiple separate windows. It is also possible to run RStudio as a server, accessible over the internet. RStudio is perhaps more suitable for the advanced user.

For installation, just follow the instructions on the website. JGR / Deducer has an all in one installer for Windows, making installation very straight forward. However, for the latest version, the packages will need to be updated. Instructions are on the Deducer website.

For Mac OSX, R needs to be installed first. Once R has been installed, open R and install Deducer by:

install.packages(c(“JGR”,”Deducer”,”DeducerExtras”))

To run JGR, enter:

Sys.setenv(NOAWT=1)
library(JGR)
Sys.unsetenv(“NOAWT”)
JGR()

Goto package manager and in package manager, make sure Deducer and Deducer Extras are ticked to load by default.

Mac OSX El Capitan

Users who have upgrade to El Capitan may have problems with the final installation of the JGR applet.

First check is JGR works by opening R and enter:

library(JGR)

JGR()

JGR should start up and the JaGuaR icon JGRshould be visible in the task bar. However, when you close JGR, the icon disappears. To make an executable file on the desktop, copy the output under JGR() to the clipboard:

#!/bin/sh

export R_HOME=”/Library/Frameworks/R.framework/Resources”
export R_ARCH=””
export R_LIBS=”/Library/Frameworks/R.framework/Versions/3.2/Resources/library”
export R_LIBS_USER=”~/Library/R/3.2/library”
‘/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java’ -cp ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rJava/java/boot’ -Drjava.class.path=’/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rJava/jri/JRI.jar:/Library/Frameworks/R.framework/Versions/3.2/Resources/library/iplots/java/iplots.jar:/Library/Frameworks/R.framework/Versions/3.2/Resources/library/JGR/java/JGR.jar:/Library/Frameworks/R.framework/Resources/etc/classes:/Library/Frameworks/R.framework/Resources/etc/classes/classes.jar’ -Drjava.path=’/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rJava’ -Dmain.class=org.rosuda.JGR.JGR  -Djgr.load.pkgs=yes  -Dr.arch= -Xdock:icon=’/Library/Frameworks/R.framework/Versions/3.2/Resources/library/JGR/icons/JGR.icns’ -Dcom.apple.mrj.application.apple.menu.about.name=’JGR’ -Xdock:name=’JGR’ -Dapple.laf.useScreenMenuBar=true -Dcom.apple.macos.useScreenMenuBar=true -Xrs -Xss5m RJavaClassLoader

Open a new text file with TextEdit and paste the contents of the clipboard into the new document. Change the format of the document to plain text (‘Format’ and then ‘Make Plain Text’). This should simplify the editor by removing the ruler at the top. Now save the file to the desktop (‘File’ and then ‘Save’) and call it runJGR.command. Finally, make the file executable by opening terminal and enter:

chmod +x

don’t hit return, but single click on the file runJGR.command on the desktop and drag it to the right of the +x in the terminal window; the command should now change to:

chmod +x /Users/YourAccountName/Desktop/runJGR.command

Hit enter, and the file is executable!

Double click on the file and JGR should start! If required, you can change the location of the file and make an alias in the taskbar.

Also: https://groups.google.com/forum/#!topic/deducer/tjV1gsGSoVk

1.
R core team. A language and environment for statistical computing. R foundation for statistical computing. [Internet]. Vienna, Austria; 2010. Available from: http://www.R-project.org/
1.
Fellows I. Deducer: A data analysis GUI for R. Journal of Statistical Software. 2012;49(8):1–15.
1.
Helbig M, Urbanek S, Fellows I. JGR: JGR – Java GUI for R [Internet]. 2013. Available from: http://CRAN.R-project.org/package=JGR
1.
RStudio. RStudio: Integrated development environment for R (Computer Software) [Internet]. Boston; 2013. Available from: http://www.rstudio.org
1.
Wickham H, Chang W. ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics [Internet]. Springer New York; 2016. Available from: http://cran.r-project.org/package=ggplot2