From: Rodney S. <rsp...@mc...> - 2008-10-07 14:17:35
|
Gorjanc Gregor wrote: > Bug 2, Priority Primary: > > >>> schools.sim <- bugs (data, inits, parameters, .schools.bug, debug=TRUE, >>> >> + WINE="/Applications/Darwine/Wine.bundle/Contents/bin/wine", >> + WINEPATH="/Applications/Darwine/Wine.bundle/Contents/bin/winepath", >> + bugs.directory="/Applications/WinBUGS14", program="winbugs", >> + n.chains=3, n.iter=1000, working.directory=".") >> >> display(log) >> check(Z:/var/folders/z4/z4O5IqhPED0pjZUVP7s0mE+++TI/-Tmp-//RtmpmMFxxp/model58c57c47.txt) >> cannot open Z:/var/folders/z4/z4O5IqhPED0pjZUVP7s0mE+++TI/-Tmp-//RtmpmMFxxp/model58c57c47.txt >> >> As we can see from the log, the model file cannot be opened. This is >> because the directory RtmpmMFxxp has the restrictive permissions 700. >> This naming convention looks like R created this directory. If so, >> then can we have R make the permissions 755? If not, then maybe we >> should be using C:\windows\temp since it has the right permissions >> to begin with. >> > > Are you sure about this? If you use working.directory="." then model file should be written in > current working directory and not in the temporary folder created by R. > > I looked in ?tempdir() and there is no sign that we could modify permissions. I did not check the > permissions on linux, but I find it odd that 700 does not allow WinBUGS to open the file. Afterall, > 700 should mean that all permissions are granted to the user (owner) of the file, which is the user > who started R and subsequently WinBUGS via wine. > > gg > > I'm sure. Actually, it does not mean that. It means, another process with your user id AND group id can access those files. But, the group id of the Wine processes and children is different. Therefore, it cannot access those files. That's why nobody uses 700 (except for something like ~/.ssh), but 755 and 750 are quite common. So, it's a bug. -- Rodney Sparapani Center for Patient Care & Outcomes Research (PCOR) Sr. Biostatistician http://www.mcw.edu/pcor 4 wheels good, 2 wheels better! Medical College of Wisconsin (MCW) WWLD?: What Would Lombardi Do? Milwaukee, WI, USA |