Re: [R] R2WinBUGS problem: bugs - storage.mode error

2011-07-10 Thread dhocking
Sorry for continuing to reply to myself. I believe that my problem was putting a factor ("plot") in my data for the bugs(data,...) call. I still have stuff to work out in the code but I don't get the error if I exclude plot from the win.data <- list(...) assignment. I have to think if that will now

Re: [R] R2WinBUGS problem: bugs - storage.mode error

2011-07-10 Thread dhocking
Sorry for the additional post - I received the suggestion to include the following additional information: *> traceback()* 5: FUN(X[[12L]], ...) 4: lapply(data, formatC, digits = digits, format = "E") 3: write.datafile(lapply(data, formatC, digits = digits, format = "E"), file.path(dir, da

Re: [R] R2WinBugs problem

2010-09-14 Thread Uwe Ligges
If the exactly same code runs on one machine and not on another where R version, script, model file, inits, data etc. are all identical, then I suspect you have different versions of R2WinBUGS installed. Please check is really all files and all version numbers are the same. If you still have

Re: [R] R2WinBUGS problem

2008-07-25 Thread Uwe Ligges
Dear Troels, it is possible to start without inits if the problem to solve is appropriate, here is the changed "schools" example from the help page: model.file <- system.file(package="R2WinBUGS", "model", "schools.txt") data(schools) J <- nrow(schools) y <- schools$estimate sigma.y <- schools

Re: [R] R2Winbugs problem

2007-09-25 Thread bbolker
Sam_zhz wrote: > > Just while I use R2Winbugs, the following error will be presented. Please > tell me how to cope with. > Error in file(file, "r") : unable to open connection > In addition: Warning message: > cannot open file 'codaIndex.txt', reason 'No such file or directory' in: > file(file,