teal.modules.clinical
teal.modules.clinical copied to clipboard
default arguments crash app (`tm_g_pp_vitals`)
What happened?
Example app in tm_g_pp_vitals crashes when some arguments are set to NULL even though those arguments default to NULL.
With paramcd = NULL:

With xaxis = NULL:

With aval = NULL:

Possibly the case in other modules as well.
sessionInfo()
No response
Relevant log output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct.
Contribution Guidelines
- [X] I agree to follow this project's Contribution Guidelines.
Security Policy
- [X] I agree to follow this project's Security Policy.
I think it's hard to set default values for these parameters so maybe NULL was selected.
@shajoezhu thoughts?
Looks like we have a good error catch with paramcd but not the others.
this is a bit odd. though, i feel there is some data issue in this too. Hi @chlebowa , any chance you can share the data with me?
I believe @chlebowa was just using the example code in the function's roxygen doc. You can try that code and set xaxis or aval to NULL.
cool! Thanks a lot Dony!, Let me try that!
I believe @chlebowa was just using the example code in the function's roxygen doc.
Correct.