-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning for formula with character vector of length > 1 #222
Comments
All three examples from library(stm)
#> stm v1.3.5 successfully loaded. See ?stm for help.
#> Papers, resources, and other materials at structuraltopicmodel.com
prep <- estimateEffect(c(1) ~ treatment, gadarianFit, gadarian)
#> Warning: Using formula(x) is deprecated when x is a character vector of length > 1.
#> Consider formula(paste(x, collapse = " ")) instead.
prep <- estimateEffect(1:3 ~ treatment, gadarianFit, gadarian)
#> Warning: Using formula(x) is deprecated when x is a character vector of length > 1.
#> Consider formula(paste(x, collapse = " ")) instead.
prep <- estimateEffect(1 ~ treatment*s(pid_rep), gadarianFit, gadarian)
#> Warning: Using formula(x) is deprecated when x is a character vector of length > 1.
#> Consider formula(paste(x, collapse = " ")) instead. Created on 2020-07-16 by the reprex package (v0.3.0) I'm seeing the same in library(ordinal)
data(wine)
# no warning:
mm <- clmm(rating ~ temp + contact + (1|judge),
data = wine)
names(wine)[2] <- "a_very_very_very_very_very_long_name"
# warning:
mm <- clmm(a_very_very_very_very_very_long_name ~ temp + contact + (1|judge),
data = wine)
#> Warning: Using formula(x) is deprecated when x is a character vector of length > 1.
#> Consider formula(paste(x, collapse = " ")) instead. Created on 2020-07-16 by the reprex package (v0.3.0) Looking very odd to me! |
Just echoing stragu with regard to the warning in This model
runs fine but throws a warning message
but if the last predictor is deleted, then it works without problems:
Not sure how that bug fix even pertains to this issue ... weird |
Hi @stgries ! If you want to chat about |
Got this fixed. Sorry development has been on hold for a bit everyone. Thanks @juliasilge for flagging. |
I am seeing some warnings in the tests for tidytext because of the way this line is set up:
stm/R/estimateEffect.R
Line 146 in c95ef0b
The warning is:
Looks like this was considered a bug fix in R 4.0:
The text was updated successfully, but these errors were encountered: