Skip to content

R2WinBUGS and calling WinBUGS in Crossover/WINE

3 messages · Kenneth Benoit, Ben Bolker

#
Hi there - I have a question for any of you who use R2WinBUGS to call 
WinBUGS using the useWINE option in that package.

I have Codeweaver's Crossover emulator installed on my Intel Mac with 
WinBUGS working fine if I start it from Crossover.  But there is 
supposed to be a way to start it directly from a command line, which I 
could pass to the R2WinBUGS using the bugs(..., useWINE="something") 
argument.

Has anyone tried this yet?  Thanks!

Ken

Kenneth Benoit
Associate Professor of Political Science
Department of Political Science, Trinity College
Dublin 2, Ireland
http://benoit.tcd.ie
Tel: 353-1-608-2491
Fax: 353-1-677-0546
#
Kenneth Benoit <kbenoit <at> tcd.ie> writes:
useWINE=TRUE.  You may have to set some environment
variables (e.g. WINE is the path to your WINE executable).
It's supposed to just work out of the box.  I have some
fixes that I've been meaning to upload to complement
the existing stuff, but haven't.  If you run into
trouble drop me a line.

 Ben Bolker
#
Ben Bolker wrote:
Many thanks for that quick reply.  I have tried useWINE=TRUE but this 
does not work on the Mac.  I am using CrossOver for Mac Beta (6.0.0b2). 
  When I call:

bugs(..., useWINE=TRUE, newWINE=TRUE)

then I get this message:
Error in if (!nchar(WINEPATH)) { : argument is of length zero

I think the problem is that the command line call for cxoffice (similar 
to "wine") is different on the Mac from the Linux version.  For instance 
I have the following application bundles:

/Applications/CrossOver.app/
~/Applications/CrossOver/WinBUGS14.app

but I cannot figure out how to start WinBUGS14.app from the command 
line.  If I did then I could supply this command to bugs(..., WINE="").

Best,

Ken