-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
New CRAN release #649
New CRAN release #649
Conversation
@strengejacke @IndrajeetPatil Any idea why some tests are still failing when |
You need to use parameters 0.22.0, which has renamed this parameter. Bump the version in DESCRIPTION and hopefully it goes away. |
It's indeed strange, we have this warning only since parameters 0.22.0? |
You're calling, e.g. from params <- parameters::model_parameters(model, verbose = verbose, effects = "fixed", es_type = NULL) the |
Oh boy. Okay, I have changed some options to make sure that we always get warnings if we are using partial matching anywhere. You should see new warnings from now on about this issue. |
Our goal was to remove that partial matching by renaming that argument in parameters, although there were no warnings, so Mattan can use both |
@mattansb Do we need to set |
We do :/ some non-ANOVA objects get passed down there... |
No, there's not. 😞 |
You can also change the options generating warnings about partial matching using |
But I want to capture other warnings... I think I'll have to use: foo <- function(x) {
if (x == 1) {
warning("something something effectsize_type...")
} else {
warning("some other warning...!")
}
x + 1
}
foo(1)
#> Warning in foo(1): something something effectsize_type...
#> [1] 2
foo(2)
#> Warning in foo(2): some other warning...!
#> [1] 3 withCallingHandlers({
foo(1)
}, warning = function(w) {
if (grepl("effectsize_type...", conditionMessage(w))) {
invokeRestart("muffleWarning")
}
})
#> [1] 2 withCallingHandlers({
foo(2)
}, warning = function(w) {
if (grepl("effectsize_type...", conditionMessage(w))) {
invokeRestart("muffleWarning")
}
})
#> Warning in foo(2): some other warning...!
#> [1] 3 Created on 2024-06-24 with reprex v2.1.0 |
Okay, @strengejacke 's fix seems to work (and all this lints! Wow!) - but I remember that argument was there for a reason. Thanks! |
I'd say we quickly remove the deprecation warning in parameters, and add back the |
I think I also read an issue about this, but cannot quite remember when and where. |
Was it related to the report package? Or because we could have parameter effect sizes for mixed models, and therefore needed to set |
No idea 🤷♂️ Anyway, submitted. |
|
deal with #648