-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
bayestestR broken after revising pd()
.
#619
Comments
@mattansb would adding |
I have no idea how describe posterior does all the merging. I think pd and p-map already have a as.numeric method. |
I'm on it but it's a weird error |
describe_posterior(x, test = "p_map")
it also fails with other tests 🤔 🤔 |
This code is no longer run, because bayestestR/R/describe_posterior.R Lines 243 to 249 in dc049fd
Since the structure of the returned data frame for numeric input in |
Do you think we should re-add a Parameter argument to the output of p_dir and p_map or fix it at the merging level? I should have checked the tests more thoroughly 🤕 (and not listen to Mattan's mellow voice softly whispering merge it in my ear) |
I think the easiest thing would be that the numeric method returns an additional column named data.frame(
Parameter = "Posterior",
p_map = pmap,
stringsAsFactors = FALSE
) |
Okay, I can fix that. |
Okay, I've changed the
However, this did change the printing method - Before:
After:
I don't know if you want to preserve the previous behavior or not... |
I'd say the print is OK. |
That's okay |
Can this be closed? |
This PR wasn't ready, and breaks parts of the code, e.g.
Created on 2023-07-31 with reprex v2.0.2
Because those functions expect numerics instead of data frames for
pd()
, I guess.Originally posted by @strengejacke in #618 (comment)
The text was updated successfully, but these errors were encountered: