From: Gorjanc G. <Gre...@bf...> - 2008-10-07 09:45:19
|
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 |