Warning: Using formula(x) is deprecated when x is a character vector of length > 1. Consider formula(paste(x, collapse = " ")) instead.

1,705 views
Skip to first unread message

Luís Santiago

unread,
Nov 29, 2021, 10:45:27 AM11/29/21
to unmarked
Hi all,

I have got this model with all my 6 occupancy variables, plus 2 more for detection.
It turns out that when I try to run it I get an odd warning message:

Using formula(x) is deprecated when x is a character vector of length > 1. Consider formula(paste(x, collapse = " ")) instead.

Here are my lines of code along with the warning message:

Warning.jpg
However, when I remove the AgriPast covariate, it runs smoothly:
noWarning.jpg

Any ideas of why this may be happening?
Thanks!

Ken Kellner

unread,
Nov 29, 2021, 4:05:56 PM11/29/21
to unmarked
This is due to a bug (fixed in the dev version of the package) that appears when the formula is very long. You can ignore it for models, like yours, that don't include random effects.
Reply all
Reply to author
Forward
0 new messages