Hi, I'm having trouble running a script within winbugs when calling winbugs from R. Here are a few lines from the winbugs log:
display(log) check(C:\DOCUME~1\michael\LOCALS~1\Temp\RtmpjKnHMu\mm_TO_bugs9bc21e.txt) cannot open C:\DOCUME~1\michael\LOCALS~1\Temp\RtmpjKnHMu\mm_TO_bugs9bc21e.txt data(C:/DOCUME~1/michael/LOCALS~1/Temp/RtmpjKnHMu/data.txt) command #Bugs:data cannot be executed (is greyed out) ... Winbugs tries to check the mm_TO_bugs9bc21e.txt file but somehow it can't and so it can't execute the rest of the commands. The file does exist. If the path is pasted into windows explorer it opens nicely. Here's the R script as well: library(mixstock) library(R2WinBUGS) mydata <- read.table("C:/turtles/temp.txt") mydata<-as.mixstock.data(mydata,4) mydataC<-markfreq.condense(mydata) m2m<-mm.wbugs(mydataC, n.iter=1000,n.chains=4,debug=TRUE) Does anyone have a guess as to why the "mm_TO_bugs9bc21e.txt" won't open? Best, Johannes -- View this message in context: http://www.nabble.com/Connecting-to-winbugs-from-R-tp26034409p26034409.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.