Closed cicdguy closed 2 years ago
So after tern
refactoring, this still gave a error message, but the message is a bit more informative now.
@shajoezhu and @junlueZH do you think this is acceptable or we should have some sort of validation to capture this?
Thanks for looking into this @yli110-stat697 ! I think this is definitely an improvement. Though, I think the error message currently is too cluttered. I wonder if we can use different colour or bold font to make it more easy for users to identify the key message: "The model seems to have ... strata varaibles"
I am thinking of to make the use of package "crayon", see https://www.r-bloggers.com/2018/07/coloured-output-in-the-r-console/ for example.
@junlueZH and @pawelru , what do you think? any suggestions? Thanks!
crayon
won't work as it's intended to be used in the console and we can see here some piece of HTML code. I see your point of enhancing formatting so that the key error message would be more visible. Will create a separate task for it.
EDIT: https://github.com/insightsengineering/teal.devel/issues/232
Thanks @pawelru !
@yli110-stat697 , I will mark this issue is blocked, and revisit it once https://github.com/insightsengineering/teal.devel/issues/232 is completed.
much improved error message
Original Message
to reproduce:
Covariates
COUNTRY
fromStratify by