Hopefully someone else will find this useful. I've figured out how to run WinBUGS using R2WinBUGS and cxoffice under Linux. The problem is that cxoffice does not have a "winepath" script included with it. Probably the best thing would be to simply copy the winepath script from a WINE installation and port to cxoffice, but here's my naive solution. YMMV. No refunds available.
1)
create a file, called say "winepath.sh" with following contents in your cxoffice bin directory (the command "which cxsetup" will help you find it)
#!/bin/sh
wine --wl-app winepath $*
Be sure to make it executable (chmod +x winepath.sh )
Assuming that data, inits and parameters are set up properly
2)
require(R2WinBUGS)
bugs.1 = bugs(data, inits,
parameters,
model.file = "/home/stiv/model1.bug", # Linux path
WINE = "/home/stiv/cxoffice/bin/wine", # use your own path!
WINEPATH = "/home/stiv/cxoffice/bin/winepath.sh", # use your own path!
bugs.directory = "/path/to/WinBUGS/in/Linux/file/system", # Linux path
working.directory = "/home/stiv", # Linux path
debug = TRUE)
David
-------------------------------------------------------------------
This list is for discussion of modelling issues and the BUGS software.
For help with crashes and error messages, first mail [log in to unmask]
To mail the BUGS list, mail to [log in to unmask]
Before mailing, please check the archive at www.jiscmail.ac.uk/lists/bugs.html
Please do not mail attachments to the list.
To leave the BUGS list, send LEAVE BUGS to [log in to unmask]
If this fails, mail [log in to unmask], NOT the whole list