-
Notifications
You must be signed in to change notification settings - Fork 45
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
Improve debugging and error messages for report functions #604
Comments
It is a bit hit and miss. Somebody would have to convert the ~500 usages of that idiom in the package,. Then users would have to stick to it. But the ~450 other uses of The solution is obvious: proper error reporting by |
What Michaja said. Have you tried creating a PR to magclass? |
No, my only experience with "magclass" is: "replacing all occurrences by quitte". |
https://github.com/pik-piam/magclass/blob/master/R/mbind.R#L79-L81 I guess we could make these error messages more meaningful? |
The problem is: to return really meaningful error messages, one needs to make some assumptions about the use |
Dear colleagues,
I find it sometimes really annoying and difficult to find out where and why a remind2 function call fails exactly, because mostly somewhere a
mbind
files. Often, the report functions have the following structure:Now, if I do some stupid stuff, I get this in the logs:
And often, also
rlang::last_trace()
is not really helpful, in particular, if the var name was not typed in as here but rather composed of some sets.I thought we could maybe replace it by something like that which would give a much more consistent and meaningful error message:
And then use:
Now I see directly which variable was affected and what was the issue (
all_regi
differs).Maybe you have even better ideas, @0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q, @Renato-Rodrigues, @fbenke-pik.
The text was updated successfully, but these errors were encountered: