I get this error message when I call bugs() from R2WinBUGS.
   "Error in while (.regexpr("\r", info) > 0) { : argument is of length zero"

A simple example is shown below.  The curious thing is that I get no error when I run it with R on Debian Linux (lenny with Wine).  I searched the BUGS archives but found no postings of this error.

It happened after I installed on a new PC (running Windows XP) R-2.10.1, R2WinBUGS, and WinBUGS14 (patched and keys updated).

Any thoughts on why and how to fix it?


---- R code --------
# Example in Albert (2007).  Bayesian Computation with R.  Springer.
# pp. 237-238.  Prior = beta(0.5, 0.5), observe Binom(n, p) distributed
# y=7 successes out of a sample of n=50.  Estimate p.
data <- list("y", "n", "alpha", "beta")
y <- 7; n <- 50; alpha <- .5; beta <- 0.5
inits <- function() { list(p = 0.1) }
param <- c("p")

Albert.bugs <- bugs(data=data, inits=inits, parameters= param, 
    model.file = "C:\\tryR\\WinBUGS\\Albert11.txt", n.chains = 3, n.iter=500)
print(Albert.bugs, digits.summary = 4)

---- WinBUGS code in 'Albert11.txt' ------ 
	y ~ dbin(p, n)
	p ~ dbeta( alpha, beta )

     Please note that this e-mail and any files transmitted with it may be 
     privileged, confidential, and protected from disclosure under 
     applicable law. If the reader of this message is not the intended 
     recipient, or an employee or agent responsible for delivering this 
     message to the intended recipient, you are hereby notified that any 
     reading, dissemination, distribution, copying, or other use of this 
     communication or any of its attachments is strictly prohibited.  If 
     you have received this communication in error, please notify the 
     sender immediately by replying to this message and deleting this 
     message, any attachments, and all copies and backups from your 

This list is for discussion of modelling issues and the BUGS software.
For help with crashes and error messages, first mail [log in to unmask]
To mail the BUGS list, mail to [log in to unmask]
Before mailing, please check the archive at
Please do not mail attachments to the list.
To leave the BUGS list, send LEAVE BUGS to [log in to unmask]
If this fails, mail [log in to unmask], NOT the whole list