julien martin <julemartin0320 <at> gmail.com> writes: > > I am generating 1000 replicate data sets in R, each data set is then > analyzed with WinBUGS in batch mode using R2WinBUGS. Unfortunately, > occasionally some data sets lead WinBUGS to open a "trap" window; and the > simulations are interrupted as result of the message. Is there any ways to > set R2WinBUGS so that it would ignore the trap message and proceed with the > simulations? I'm not sure -- I don't think so -- I don't remember if R hangs or returns an error on a trap -- but you could try (1) try() and (2) JAGS/R2jags
______________________________________________ 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.