From: Uwe L. <li...@st...> - 2008-10-07 13:22:21
|
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. Yes, and this is the idea of R's tempdir(): We should not need to bother because the user (!) already generated the temporary directory in which we are writing, hence to user should have write permissions. Uwe > gg > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Bugs-r-devel mailing list > Bug...@li... > https://lists.sourceforge.net/lists/listinfo/bugs-r-devel |