-
Notifications
You must be signed in to change notification settings - Fork 49
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 error localization #329
Comments
Hi @kpagacz, So what you're calling layer functions (as far as I can tell) i.e., That said, I may be able to give some diagnostic information durring the breakdown process, and I will look into that. Thanks for the report. |
Indeed, Having that in mind, when data is piped, I have encountered errors thrown from functions deep inside |
We now give informative messages when user-specified functions break as of
gives us
Errors for failures in custom cfuns (ie row group summary functions) and custom split functions are similarly informative. |
rtables
does not provide any error localization when it builds a table. The layout can be a "layered" structure with multiple functions piped one after another and the error is thrown once thebuild_table
function is executed. When there are errors resulting from inappropriate application of the functions consisting of the layout there is no built-inrtables
way of showing the user whatlayer
caused the error. It makes layout functions unpleasant to debug.Would be nice if the errors were giving some indication of what layer function actually caused the issue. In other words, it would be better if layer functions validated if the function can be executed and throw the error itself instead of delegating error throwing to private functions deep inside the package.
The text was updated successfully, but these errors were encountered: