Closed drnickisaac closed 5 years ago
@drnickisaac can you add a reproducible example and tell me what warning message you get?
I also see the pipes have been erroneously added back in
Can you remove these?
@AugustT I have fixed the errorChecks bug. The pipe error is quite a different issue and should be separated (then this issue can be closed). I'd rather not attempt to fix it as my understanding of the syntax is imperfect.
Since we added the
replicate
option to the data structure, I think a bug has been introduced into the warning.The warning in
errorChecks
lines 45-51 does not includereplicate
. However, the information inreplicate
is being used correctly when the BUGS data is being prepared, at line 152 of formatOccData.This means that if
replicate
is included in the input data, the information it provides does not filter through to the warning message. So the warning message is wrong, but the formatting of the data is correct.We could add replicate to line 45 & 47, but I don't know what would happen where
replicate = NULL
(the default).