RLaB Setup for Physics 340
A few things need to be done to get RLaB to work properly for physics 340.
What is shown below assumes you are using csh or tcsh. If you are using
bash, environment variables are set by the alternate syntax
``export VARNAME=varvalue'', and these lines should be put in the
``.profile'' file rather than the ``.login'' file. You can determine
which shell you are using by typing ``echo $SHELL''.
-
In your ``.login'' file put a line ``setenv RLAB_SEARCH_PATH
.:/usr/local/lib/rlab/toolbox:/u/raymond/rfiles:/u/raymond/ph340''.
This sets the directories in which RLaB looks to find ``.r'' files.
Note that this is all one line, with spaces surrounding
``RLAB_SEARCH_PATH'', but nowhere else.
-
Also in ``.login'', put ``setenv RLAB_RC0 /u/raymond/.rlab''. Note
that this is RLAB_RC``zero'', not ``Oh''! This
tells RLaB to read the ``.rlab'' file in my home directory when
starting up. The main reason for this is to cause the pgraf
graphics package to be automatically loaded when RLaB starts.
-
Finally, in ``.login'', put ``setenv PATH ${PATH}:/u/raymond/`uname`bin''.
Note that the quotes around ``uname'' are back-quotes (upper left on
PC keyboard). Single forward quotes will not work. This puts the
pgraf backend programs in your path so that RLaB can find them. The
call to uname expands to ``SunOS'' on the Sparcstations and ``Linux''
on the PCs. This syntax selects the proper versions of the programs
for the architecture on which you are running. Note: The old Sun-3s
cannot be used for RLaB except as X-terminals with RLaB actually running
on Sparcs or Linux machines.