I'm trying to run a code in the R that loads the winbugs
package I already have installed
require(R2WinBUGS);
But I'm having this error
Read 180 items
Error in file(con, "rb") : cannot open the connection
In addition: Warning message:
In file(con, "rb") :
cannot open file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry.odc': No such file or directory
Error in bugs.run(n.burnin, bugs.directory, WINE = WINE, useWINE = useWINE, :
WinBUGS executable does not exist in c:/Program Files/WinBUGS14/
Called from: bugs.run(n.burnin, bugs.directory, WINE = WINE, useWINE = useWINE,
newWINE = newWINE, WINEPATH = WINEPATH)
I have already changed the working directory . I'm using windows 10 and tried unsuccessfully to install winbugs.
EDIT: I was able to run my code after installing WinBugs14, it ran normal, but that appeared here
Read 180 items
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