title: Calling WinBUGS14 from R
body: <p>I'm trying to call WinBUGS from R, but I have not been very successful.</p>
  
  <p>I typed this code in R:</p>
  
  <pre><code>radon.data &lt;- list ("n", "J", "x", "y", "county")
  radon.inits &lt;- function (){
    list (a=rnorm(J), b=rnorm(1), mu.a=rnorm(1),
          sigma.y=runif(1), sigma.a=runif(1))
  }
  radon.parameters &lt;- c ("a", "b", "mu.a", "sigma.y", "sigma.a")
  </code></pre>
  
  <p>Then, I call WinBUGS:</p>
  
  <pre><code>radon.bugs.1 &lt;- bugs (radon.data, radon.inits, radon.parameters, "radon.1.bug", n.iter=10,
          bugs.directory="C:/Program Files/WinBUGS14", working.directory=NULL, clearWD=TRUE, debug=TRUE )
  </code></pre>
  
  <p>And I get following error in the WinBUGS:</p>
  
  <pre><code>set(sigma.y)
  command #Bugs:set cannot be executed (is greyed out)
  set(sigma.a)
  command #Bugs:set cannot be executed (is greyed out)
  set(deviance)
  command #Bugs:set cannot be executed (is greyed out)
  dic.set()
  command #Bugs:dic.set cannot be executed (is greyed out)
  update(5)
  command #Bugs:update cannot be executed (is greyed out)
  coda(*,C:/Users/Gabriel/AppData/Local/Temp/Rtmpf1rAQa/coda)
  command #Bugs:coda cannot be executed (is greyed out)
  stats(*)
  command #Bugs:stats cannot be executed (is greyed out)
  dic.stats()
  
  DIC
  history(*,C:/Users/Gabriel/AppData/Local/Temp/Rtmpf1rAQa/history.odc)
  command #Bugs:history cannot be executed (is greyed out)
  save(C:/Users/Gabriel/AppData/Local/Temp/Rtmpf1rAQa/log.odc)
  save(C:/Users/Gabriel/AppData/Local/Temp/Rtmpf1rAQa/log.txt)
  </code></pre>
  
  <p>I would appreciate if someone could help me. My files are in the same </p>