Installing sediment load procedures for R

If you have already installed R 1.3.0 on your machine, installation is simple.

  1. Copy this version of .RData to a permanent location on your PC. In the Save dialog, make sure your browser does not alter the name from .RData. There should be no characters before the dot. If you are using TTS Adjuster, then the ideal location will be your TTS home directory, i.e. the location where all your station subdirectories reside. If you are not using TTS Adjuster, then the R sediment load procedures will not be so useful, because they expect to take their input from the .flo files created by TTS Adjuster.
  2. Make a desktop shortcut that points to .RData and rename it to something like TTS sediment loads.

If you do not already have R on your machine, install R 2.2.0:

  1. Install R version 2.2.0 from the CRAN web site. Click R binaries ... <your platform> ... base .... old ... R 2.2.0. If you are using Windows, download and install R-2.2.0-win32.exe. Accept the default choices. Leave the box checked for creating a Desktop shortcut.
  2. Copy this version of .RData to a permanent location on your PC by right-clicking and choosing Save Link As (FireFox) or Save Target As (Internet Explorer). In the Save dialog, make sure your browser does not alter the name from .RData. There should be no characters before the dot. There was another version of .RData for raw data plotting in TTSrawplot2_1.exe. Do not use that version here. If you are using TTS Adjuster, then the ideal location for .RData will be your TTS home directory, i.e. the location where all your station subdirectories reside. If you are not using TTS Adjuster, then the R sediment load procedures will not be so useful, because they expect to take their input from the .flo files created by TTS Adjuster.
  3. Right click on the R desktop shortcut and rename it to something like TTS sediment loads.
  4. Right click on the R desktop shortcut again and, under Properties, Shortcut Tab, change the Start In location to the folder where you filed .RData.
  5. Optional: increase maximum memory usage by adding --max-mem-size=1024M to the Target for the desktop shortcut (again under Properties, Shortcut Tab), so the Target will look something like "C:\Program Files\R\R-2.2.0\bin\Rgui.exe" --max-mem-size=1024M
  6. Start R by double-clicking the shortcut.
  7. From the Packages menu in the RGui window, select Install package(s) ... choose a nearby CRAN mirror ... select "chron" ... click OK
  8. Quit R and answer Yes to Save the workspace image?

It is possible to simultaneously run two different versions of R on your machine but workspaces are version-specific, so make sure that the workspaces are each opened via shortcuts that have the appropriate targets, e.g.

  1. "C:\Program Files\R\rw1030\bin\Rgui.exe" --max-mem-size=1024M
  2. "C:\Program Files\R\R-2.2.0\bin\Rgui.exe" --max-mem-size=1024M

Note well: newer versions of R do not permit the use of the underscore character for assignment. You must use "<-".