hello, I'm returning to secr after a 5 year hiatus. I'm running into a problem when I try to run a secr models I get the following no matter how I phrase the models...
"Warning message:
Using formula(x) is deprecated when x is a character vector of length > 1.
Consider formula(paste(x, collapse = " ")) instead. "
I've been googling and going through the forum for the whole day, tried a variety of things then decided to run my old files and script from 2015 when secr worked just fine for me, got exactly the same message, so its not liking something. Has anyone had this message before, any suggestions?
My data is very basic camera trap data, not trying to do anything fancy at this stage
Files in the following format
1.Captures
# Session ID Occasion Detector
Site1 1 6 8
Site1 1 7 8
Site1 1 37 8
Site1 1 38 8
Site1 1 55 8
2. Traps (XY data is sensitive hence the xxxx!)
# Detector X Y Useage
1 xxxxxx xxxxx 0 0 0 1 1 1 1.....etc
2 xxxxxx xxxxxx 0 1 1 1 1 1 1.....etc
3. Habitat mask (suitable = 1, non -suitable = 0)
X Y Habitat
xxxxxx xxxxx 0
xxxxxx xxxxx 1 ....etc
4. Camera data
# Detector X Y
1 xxxxxx xxxxxx
2 xxxxxx xxxxxx ....
Data loads fine, read.capthist works fine, no obvious errors in the data. But running even the most basic secr.fit model results in the same error. Because my old files and script haven't worked in the newest version of secr I'm wondering if I'm just doing something fundamentally wrong with the way I am formatting my script for the newer version.
This is my script which worked fine on the last version of secr I used many years ago
secrBASIC <- secr.fit(capthist, model=g0~1, mask=habitatmask, CL=TRUE, trace=FALSE)
Please help!
Thanks