Problem loading winbugs into R

Asked

Viewed 179 times

1

I’m trying to run a code on the R that loads the package winbugs that I have already installed

require(R2WinBUGS);

but I’m making this mistake

   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 already switched out the Working directory. I am using windows 10 and tried unsuccessfully to install winbugs.

EDIT: Guys I managed to run my code after installing Winbugs14, ran normal, only it 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
  • Welcome to the OS in English. Please translate your question.

  • 5

    It seems to me that the AP does not speak Portuguese and posted here by mistake, providing an answer here would not help you at all. @PRAGAKHAM This is the Portuguese version of Stackoverflow, if you don’t Speak Portuguese Please Ask you Question here. And by the way, make sure you have Winbugs installed on the c:/Program Files/WinBUGS14/directory.

1 answer

2

Already tried to run R as administrator?

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.