From: Uwe L. <li...@st...> - 2008-10-07 14:34:05
|
Rodney Sparapani wrote: > Gorjanc Gregor wrote: >> Hi! >> >> >>> No, it doesn't. But, this does: >>> >>> schools.sim <- bugs(data, inits, parameters, model.file, >>> n.chains=3, n.iter=5000, >>> bugs.directory="/Applications/WinBUGS14", working.directory=".", >>> WINE="/Applications/Darwine/Wine.bundle/Contents/bin/wine", >>> WINEPATH="/Applications/Darwine/Wine.bundle/Contents/bin/winepath", >>> clearWD=TRUE) >>> >> Then we are not successfull in finding wine binaries in Mac. This is done by R2WinBUGS:::findUnixBinary >> function. It goes like this (returning the result on the first success): >> >> * check if there is x (WINE or WINEPATH) environmental variable >> * check if there is /usr/bin/x >> * try with which x >> * try with locate x >> >> I thought that there is which command in Mac also. Afterall Mac uses unix internally. Can you please check in >> the terminal the result of the following commands: >> >> which wine >> which winepath >> >> locate wine >> locate winepath >> >> Btw. As stated last time, working.directory="." is not really needed unless you do want >> to keep the intermediate files in current working directory. >> >> > Actually, working.directory="." is required, otherwise the example doesn't > work. Hence, the reason that it is there... > > And, which/locate aren't going to work. Those are for the Unix subsystem. > Since Darwine is located in a .bundle, /Applications/Darwine/Wine.bundle, > wine/winepath will not be found. A .bundle is like an .app, but a bit more > general. For example, a .bundle may contain almost anything and it usually > does not contain a Mac app: rather, it is often used to contain > command-line > scripts like wine, man pages, shared libraries, etc. However, I take your > point. It probably makes sense to have links from /usr/local/bin to wine and > winepath. But, the documentation should state that this is necessary. I > don't see that anywhere. Maybe there should be a Mac-specific doc as well > or a wiki or something. Thanks. > The ?bugs help pages tells us: WINE character, path to ‘wine’ binary file, it is tried hard to get the information automatically if not given. WINEPATH character, path to ‘winepath’ binary file, it is tried hard to get the information automatically if not given. We said "tried hard [...] if not given", if this leads to misunderstandings, what wording would you prefer? Uwe Ligges |