For this course you only need a laptop and a fairly modern web browser.
However, if working locally you need to install the following components:
Basic Ways to Interact with R
|Rterm||R through Command Line||Batch Processing/Automation|
|RGui||R through minimal GUI||Quick Tasks|
Below you see an exercise example window. Just use R instead of your pocket calculator:
- Application looking similar to classical spread sheet software
- Full-fledged coding environment to create R scripts (among many other things)
- Runs on all major operating systems including Windows, MacOS and Linux.
You can open RStudio directly in the browser by clicking the Start/Open Workspace button.
Let’s have a look what the RStudio IDE can do for us. We will briefly present the major tasks of RStudio:
- How to create, edit and save your source code
- How to run your code in the console
- How to plot graphs and images
- How to make use of the searchible history
- How to manage the Workspace
- How to make your work more productive with projects
We can now start the RStudio workspace to perform the steps above.
- How to integrate your work to Git and Subversion
- How to author LaTeX and Sweave documents to get PDF docs
- Screenshots provide a good starting point.
- Documentation provides a huge bulk of detailed information.
- Cheat Sheet at
Help -> Cheatsheets -> RStudio IDE Cheat Sheet
- O’Reilly book written by John Verzani: Getting Started with RStudio
A package can be distributed as
- Source package
- Binary representation of the corresponding source package.
The main distribution channels (aka R repositories) include:
This is all documented in TFM. Those who WTFM don’t want to have to WTFM again on the mailing list. RTFM. – Barry Rowlingson R-help (October 2003)
What are HOME, working and other directories?
- Working directory: where
R was started (or set via
- HOME directory: on Windows 7 usually
- R_HOME: the installation directory.
- Package library: where the packages are installed.
Check the current working directory using the
What is the difference between the working directory, the home directory and
R_HOME? Check the files in those directories using the
Check which statements regarding the working directory and file system are correct: