Dear R lists, I ran Winbugs under R. I could get the results, but I kept getting the error messages: Error in file(con, "wb") : cannot open the connection In addition: Warning messages: 1: In file.create(to[okay]) : cannot create file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry_Rsave.odc', reason 'Permission denied' 2: In file(con, "wb") : cannot open file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry.odc': Permission denied I ran two data sets, and got the same error messages. Why? How to get rid of the error messages? Thank you so much! Best wishes Lin Zhongjun _________________________________________________________________ Messenger°²È«±£»¤ÖÐÐÄ£¬Ãâ·ÑÐÞ¸´ÏµÍ³Â©¶´£¬±£»¤Messenger°²È«£¡ [[alternative HTML version deleted]]
Why do you post twice? ANway, same answer as before: You probably do not have write permissions for those WinBUGS files that R2WinBUGS tries to rewrite. Uwe Ligges LinZhongjun wrote:> Dear R lists, > > I ran Winbugs under R. I could get the results, but I kept getting the error messages: > > > > > > Error in file(con, "wb") : cannot open the connection > In addition: Warning messages: > 1: In file.create(to[okay]) : > cannot create file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry_Rsave.odc', reason 'Permission denied' > 2: In file(con, "wb") : > cannot open file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry.odc': Permission denied > > I ran two data sets, and got the same error messages. > > Why? How to get rid of the error messages? > > Thank you so much! > > Best wishes > Lin Zhongjun > _________________________________________________________________ > Messenger????????????????????????????????????Messenger?????? > > [[alternative HTML version deleted]] > > > > ------------------------------------------------------------------------ > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Polwart Calum (County Durham and Darlington NHS Foundation Trust)
2009-Oct-03 12:20 UTC
[R] Winbugs under R's error message
>LinZhongjun wrote: >> > >I ran Winbugs under R. I could get the results, but I kept getting the error messages: >> > > Error in file(con, "wb") : cannot open the connection > >In addition: Warning messages: > >1: In file.create(to[okay]) : > > cannot create file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry_Rsave.odc', reason 'Permission denied'Uwe wrote:> > You probably do not have write permissions for those WinBUGS files that R2WinBUGS tries to rewrite. >and wrote:> > Why do you post twice? >Uwe that was a pretty obvious answer and filled my inbox with two rather useless emails at the same time - so I hardly think you have the right to then criticise someone for dual posting. I'd guess he didn't intentionally do it! However your answer failed to point out the more obvious reason there is a problem - the path has a double forward slash in it WinBUGS14//System - under windows thats an impossible file name as far as I know. I don't use WinBUGS (*or even windows) but rather than looking at file privs you should be trying to find how that path gets built. My gut feeling is there will be a config file somewhere with a path that is C:/program files/WinBugs14 and another path that takes you from there to the files which is listed as /System/Rsrc/ - joining the two together and you get a double slash. Probably take the leading slash off the second one - but not sure where you'll find the file. Hope that helps - sorry I can't tell you where to look. ******************************************************************************************************************** This message may contain confidential information. If yo...{{dropped:21}}
The reason may be that I used a vista machine. I tried on a XP machine, and there were no error messages......> Date: Sat, 3 Oct 2009 11:49:25 +0200 > From: ligges@statistik.tu-dortmund.de > To: lin_zhongjun@hotmail.com > CC: r-help@r-project.org > Subject: Re: [R] Winbugs under R's error message > > Why do you post twice? > ANway, same answer as before: > > You probably do not have write permissions for those WinBUGS files that > R2WinBUGS tries to rewrite. > > Uwe Ligges > > > LinZhongjun wrote: > > Dear R lists, > > > > I ran Winbugs under R. I could get the results, but I kept getting the error messages: > > > > > > > > > > > > Error in file(con, "wb") : cannot open the connection > > In addition: Warning messages: > > 1: In file.create(to[okay]) : > > cannot create file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry_Rsave.odc', reason 'Permission denied' > > 2: In file(con, "wb") : > > cannot open file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry.odc': Permission denied > > > > I ran two data sets, and got the same error messages. > > > > Why? How to get rid of the error messages? > > > > Thank you so much! > > > > Best wishes > > Lin Zhongjun > > _________________________________________________________________ > > Messenger°²È«±£»¤ÖÐÐÄ£¬Ãâ·ÑÐÞ¸´ÏµÍ³Â©¶´£¬±£»¤Messenger°²È«£¡ > > > > [[alternative HTML version deleted]] > > > > > > > > ------------------------------------------------------------------------ > > > > ______________________________________________ > > R-help@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code._________________________________________________________________ MSN十周年庆典,查看MSN注册时间,赢取神秘大奖 http://10.msn.com.cn [[alternative HTML version deleted]]