I'm having the same problem, but still get the error with version 3.0.0.
The dipper example in `?run.mark.model` returns the error:
Error in readChar(fd, 8 ) : invalid UTF-8 input in readChar()
Problem extracting output. Look at MARK output file to see what is wrong.
I wonder if the problem is related to a special character appearing at the start of a header line in mark???.out. It appears as an 'up arrow' on my machine, and as a square in the following:
Program MARK - Survival Rate Estimation with Capture-Recapture Data
Compaq(Win32) Vers. 5.1 Apr 2007 28-Jul-2023 10:44:05 Page 002
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Any tips gratefully received!
Many thanks.
Reproducible example:
- Code: Select all
> packageVersion("RMark")
[1] ‘3.0.0’
- Code: Select all
library(RMark)
test=function()
{
data(dipper)
for(sex in unique(dipper$sex))
{
x=dipper[dipper$sex==sex,]
x.proc=process.data(x,model="CJS")
x.ddl=make.design.data(x.proc)
Phi.dot=list(formula=~1)
Phi.time=list(formula=~time)
p.dot=list(formula=~1)
p.time=list(formula=~time)
cml=create.model.list("CJS")
x.results=mark.wrapper(cml,data=x.proc,ddl=x.ddl,prefix=sex,delete=TRUE)
assign(paste(sex,"results",sep="."),x.results)
}
rm(Male.results,Female.results,x.results)
}
test()