-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
[Question]: About passing external variables to modules #1221
Comments
We tried the approach from https://insightsengineering.github.io/teal.modules.clinical/latest-tag/reference/tm_t_events_summary.html. But this seems not work for a data from teal_data_module() |
I would like to answer for myself that which is a temporary solution:
e.g. |
If only one variable is allowed by
|
I am happy this "hack" works :) but I am sure someone from the core team can help you best. I am not sure if the data can be changed within {teal.data} as you mentioned above. Any suggestions? @donyunardi @vedhav |
Thank you @Melkiades for catching this up! I understand that {teal} is developed for study-level purpose. Developer can deploy one app to one sever for study. From our side, we want to see if one hosted server can work for different studies. It's good to see we have a function |
Functional subset is the proper way to do this when using We'll planning to tackle this soon, in the meantime, I think your temporary solution (surfacing the object globally) sounds plausible. 👍🏼 |
@donyunardi thank you for keeping us updated and good to know it's on the track. If possible let me know when such updates reflect on CRAN so that we can adapt accordingly. Can't wait to see that. |
Hey @pzhang-cims , the bug that @donyunardi mentioned was only in
|
@m7pr, thank you so much for the detailed explanation. In you 3 options, I believe I know the first one, and the second one is similar to what I applied right now. The third one seems interesting and resolve the issue from another angle. Let me try it recently and reflect my experience later. |
Sure @pzhang-cims , I think we can close this, and we can reopen if you ever come back and continue the conversation? |
@m7pr yes, please, I'll re-open this issue if I experience further problems. Thank you so much! |
What is your question?
Hi there,
Thanks for the effort of developing teal.modules.clinical. I have a general question that how to pass external variables into the modules.
For example, consider a module using following code
In this case, we fix the variables of 'TRT01A', and 'TRT01P' as choices and 'TRT01P' as selected. We are wondering, if there is a way that, we can pass variable from external file, or server environment that, say, a variable called
arm_selected = c('TRT01A','TRT01P')
and we will havechoices= variable_choices("ADSL", arm_selected)
. I have tried multiple ways:Would you please advise if this use case is plausible in teal.modules.clinical?
Code of Conduct
Contribution Guidelines
Security Policy
The text was updated successfully, but these errors were encountered: