Installing
sediment load procedures for R
If you have already installed R 1.3.0 on your machine, installation is simple.
-
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.
- 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:
- 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.
- 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.
- Right click on the R desktop shortcut and rename it to something
like TTS sediment loads.
- 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.
- 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
- Start R by double-clicking the shortcut.
- From the Packages menu in the RGui window, select Install
package(s) ... choose a nearby CRAN mirror ... select "chron" ...
click OK.
- 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.
- "C:\Program Files\R\rw1030\bin\Rgui.exe"
--max-mem-size=1024M
- "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 "<-".