Re: [R] Current state of support for BUGS access for Linux users?

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Wed 18 Jan 2006 - 08:05:43 EST

Paul Johnson wrote:

> Thanks, Uwe
> 
> that clears up why I can't make R2WinBUGs work with OpenBUGS and WinBUGS1.5 :)
> Both work pretty good with Wine in a GUI.  I noticed that when I tried
> "rbugs", it does succeed in starting WinBUGS GUI, but then nothing
> happens. I'll get WinBUGS1.4 and see what happens.
> 
> In the meanwhile, I'm going to t ry to see what BRugs is good for. In
> Linux, when I try to install BRugs, the install fails with an error
> saying that, at the current time, BRugs works only in Windows.


Yes, I have added that particular line in order not to confuse users, and I thought I told you in my last message that it works only under Windows.

> * Installing *source* package 'BRugs' ...
> Package 'BRugs' currently only works under Windows.\nIt is supposed to
> work under Linux in future releases.
> 
> I'd like to stop that check and see what happens!  

OK, just remove the configure file.

> The way I read the
> sourcecode from OpenBUGS and BRugs, I need to replace the windows dll
> install and instead put in an so file (as in OpenBUGS).

Yes, it is already shipped, and the infrastructure in the package is ready (hopefully), but the brugs.so file does not work as expected.

> If anybody has done this, please let me know of your experience.

Yes, several tried, among them Andrew Thomas and Uwe Ligges, and then I invited Andrew Thomas to Dortmund and we tried together (I have to admit that I was clueless all the time and in fact Andrew tried). Andrew's conclusion was that there is some compiler problem on Linux with the BlackBox framework (Component Pascal compiler from Oberon microsystems) in which WinBUGS/OpenBUGS is written in ...

If you get it to work, please let us know!

Uwe

> 
> On 1/17/06, Uwe Ligges <ligges@statistik.uni-dortmund.de> wrote:
> 

>>Paul Johnson wrote:
>>
>>>Greetings:
>>>
>>>I'm going to encourage some students to try Bayesian ideas for
>>>hierarchical models.
>>>I want to run the WinBUGS and R examples in Tony Lancaster's An
>>>Introduction to Modern Bayesian Econometrics. That features MS
>>>Windows and "bugs" from R2WinBUGS.
>>>
>>>Today, I want to ask how people are doing this in Linux? I have found
>>>a plethora of possibilities, some of which are not quite ready, some
>>>of which work only under MS Windows. Right now I just want to know
>>>"what actually works".
>>>
>>>Here's where I stand now in Fedora Core 4 Linux.
>>>1. OpenBUGS-2.1.1 runs in Linux. I can run "linbugs" (the console
>>>version similar to the old BUGS) and also I can run--under wine--the
>>>newest version of "winbugs.exe" that is circulated with OpenBUGS. As
>>>far as I can tell, the graphical interface in wine/winbugs works in
>>>almost all elements. A few things seem not quite right in the GUI
>>>(can't initialize more than one chain, difficult to specify variables
>>>for monitoring), but it does work.
>>>
>>>It is easier to install and work with OpenBUGS's version of
>>>winbugs.exe than with Winbugs-1.4 because the Open version does not
>>>have that annoying license registration and "winbugs.exe" is not
>>>wrapped inside an installation script. I'm a little confused about
>>>WinBUGS versions because the BRugs documents
>>>http://www.biostat.umn.edu/~brad/software/BRugs/BRugs_install.html
>>>refer to WinBUGS-1.5, which refers to
>>>http://www.biostat.umn.edu/~brad/software/BRugs/WinBUGS15.zip, which
>>>can be downloaded without any of the registration steps, but WinBUGS15
>>>is not mentioned in the WinBUGS site (where 1.4.1 appears to be the
>>>newest).
>>>
>>>Supposing I get the winbugs.exe question settled:
>>>
>>>2. How to most dependably send jobs from R to "linbugs" or "winbugs.exe"?
>>>
>>>The BRugs package is preferred?
>>>
>>>For a long time, R2WinBUGS was Windows-only, but toward the end of
>>>last fall I noticed that R2WinBUGS now does compile and install under
>>>R in Linux.
>>>
>>>however, its help still says:
>>>SystemRequirements: WinBUGS 1.4 on Windows
>>>
>>>I'd appreciate any advice.
>>
>>[resend to less recipients in order to save Martin's spare time to
>>approve message;
>>CCing Andrew Thomas, Bob O'Hara and Sibylle Sturtz separately]
>>
>>
>>
>>
>>Re BUGS:
>>WinBUGS-1.5 never got really released, AFAIK - Andrew or Bob might want
>>to correct me. It has been renamed to OpenBUGS. The current version is
>>the GPL'ed OpenBUGS 2.1.1 available from
>>http://mathstat.helsinki.fi/openbugs/.
>>
>>Re R packages:
>>- R2WinBUGS is compatible with WinBUGS-1.4.x only, its newest version
>>can speak with WinBUGS under wine thanks to user contributions. But it
>>still depends on WinBUGS-1.4.x, hence Windows only (considering wine as
>>Windows).
>>- BRugs contains the BRugs interface, R functions and the whole OpenBUGS
>>installation. Unfortunately, due to serious compiler problems, we were
>>not able to get a Linux version running using the interface. Hence it
>>was not possible to release any non-Windows version up to now.
>>I haven't tested BRugs under wine yet (in which case R has to run under
>>wine as well, of course) ... and I do not know if there are any serious
>>performance penalties.
>>Note that even in the long term, OpenBUGS will only run on x86 based
>>platforms.
>>
>>Due to the much more flexibile interface, I prefer BRugs.
>>
>>BTW: "Real programmers" won't consider R2WinBUGS to be an "interface" at
>>all - it might be useful, though. ;-)
>>
>>
>>Uwe Ligges
>>
>>
>>
>>
>>>--
>>>Paul E. Johnson
>>>Professor, Political Science
>>>1541 Lilac Lane, Room 504
>>>University of Kansas
>>>
>>>______________________________________________
>>>R-help@stat.math.ethz.ch mailing list
>>>https://stat.ethz.ch/mailman/listinfo/r-help
>>>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>>
>>
>>
>>
> 
> 
> --
> Paul E. Johnson
> Professor, Political Science
> 1541 Lilac Lane, Room 504
> University of Kansas
> 
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jan 18 08:22:24 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:05 EST