Download The Art of R Programming
Transcript
Chapter 20 User Interfaces Though some may feel that “real programmers use the command line,” others prefer more sophisticated interfaces. We discuss two here. 20.1 Using R from emacs There is a very popular package which allows one to run R (and some other statistical packages) from within emacs, ESS. I personally do not use it, but it clearly has some powerful features for those who wish to put in a bit of time to learn the package. As described in the R FAQ, ESS offers R users: R support contains code for editing R source code (syntactic indentation and highlighting of source code, partial evaluations of code, loading and error-checking of code, and source code revision maintenance) and documentation (syntactic indentation and highlighting of source code, sending examples to running ESS process, and previewing), interacting with an inferior R process from within Emacs (command-line editing, searchable command history, command-line completion of R object and file names, quick access to object and search lists, transcript recording, and an interface to the help system), and transcript manipulation (recording and saving transcript files, manipulating and editing saved transcripts, and re-evaluating commands from transcript files). 20.2 GUIs for R As seen above, one submits commands to R via text, rather than mouse clicks in a Graphical User Interface (GUI). If you can’t live without GUIs, you should consider using one of the free GUIs that have been developed for R, e.g. R Commander (http://socserv.mcmaster.ca/jfox/Misc/Rcmdr/), JGR 173