Set up a /CODA directory and move the coda03.SPARC file here. Then create a /CODA/.Data directory. Invoke S-Plus from the /CODA directory and install the CODA functions using the S-Plus command:
source("coda03.SPARC")
If you then wish to run CODA from a different directory (e.g. from the directory in which you have stored the output from a particular BUGS analysis), create a .Data sub-directory for this directory. Then invoke S-Plus and use the attach() function to load CODA. For example, if you have installed CODA in a directory with path /usr/fred.bloggs/CODA, then type:
attach("/usr/fred.bloggs/CODA/.Data")
from within S-Plus. You may also create a .First function containing this command, e.g.
.First <- function() {
attach("/usr/fred.bloggs/CODA/.Data")
}
This will cause CODA to be loaded automatically every time S-Plus is invoked from that particular directory.