'wb.dir' is the path to the WinBUGS program directory. 

'bugs.dir' is an obsolete name for the WinBUGS program directory.  It has been replaced by 'ob.dir' and 'wb.dir' - these refer to the program directories of OpenBUGS and WinBUGS, respectively.

'Win2OpenBUGS' is a R function for converting WinBUGS model files
to OpenBUGS model files.  It was downloaded from
'http://www.openbugs.info/w/UserContributedCode'
on 1/29/2011.  The following attribution is copied from the website
at the preceding url:
"Larry Gould (Merck) has created an R function to convert WinBUGS script
files to OpenBUGS script files. Chris Jackson (mrc-bsu.cam.ac.uk)has
revised the code to fix some errors."

The 'windows.jm' function in "jmfuns.rda" opens a graphics window.  It is almost identical to the 'windows' function in the grDevices package, except that it has been modified to use JM's preferred defaults.  

OBSOLETE:  Previously, JM created a function named windows and stored it in jmfuns.rda.  By saving JM's windows function to "jmfuns.rda", which sits in front of the grDevices package on the search path, JM's windows function would intercept the call to windows, introduces JM's defaults, and passes the rest of the function call on to the grDevices windows function.  This strategy has been abandoned because it may cause confusion for students who use the jmfuns.rda functions.

'write.functions' creates a text file that contains the code for
defining a set of functions.  The functions can be loaded
to the working directory with the 'source' function.  Alternatively,
one can create a new environment on the search path and 'sys.source'
the functions into it, e.g.,
sys.source('myfuns.txt', envir = attach(NULL, name='my.functions'))
There are several different ways to specify the functions in the list:
ARGUMENTS:
'outfile' = the text file to which the function code is to be written.
CAVEAT: If there already exists a file named 'outfile', it will be
overwritten with a new file.
'fn.names' is a vector of function names.  It can be omitted if every
function in a specified file on the search path is to be written to
'outfile'.  If 'fn.names' is specified and 'pos' and 'env.to.path' are
both NA, then 'inherits = TRUE' on the internal 'get' call, so the
code for the first function that matches each name in 'fn.names' will
be written to 'outfile'.
'pos' is a number specifying a position on the search path.  If 'pos' is
not NA, then 'inherits = FALSE' on the internal 'get' call, so R will
look only in 'pos' for the functions whose code will be written to 'outfile'.
'env.on.path' is an alternative way to specify a position on the search
path.  Partial matching is active, so 'jmfuns' will match to
'file:e:\r\jmfuns.rda'.  As with 'pos', if 'env.on.path' is not NA,
then 'inherits = FALSE' on the internal 'get' call, so R will look only
in 'pos' for the functions whose code will be written to 'outfile'.
'header.lines' is an optional character vector that will be written to
the head of the output file as one or more lines of comments.  An '# ' will
be automatically added to the front of each line.  'header.lines' can
be used to document the set of functions in the file.