-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
[Feature Request]: Allow app dev to supply card function. #736
Comments
Thanks @chlebowa Perhaps this feature can also encapsulate the request to skip reporter for a single module and disable them altogether. We are interested in this and looking forward to collaborate with you on this. |
Reporting is built into modules and cannot be controlled by the module constructor (e.g. I mentioned here a way of adding reporting to a module by a function call. If reporting were added explicitly, lie with
Would that be June through July? |
That's exactly what I thought. I see that this can be the basis for other requirements.
Correct, hope that's okay. |
We'll make it work 👌 |
Hey @chlebowa thank you for raising this feature request and for providing a propoasl implementation in this PR #742. Looks like @gogonzo and @pawelru expressed their opinion on the PRs (and also on the previous proposition with hydrating #737). However I don't think there is a clear agreement around the people involved in the review process on how to proceed forward. I think this comment from May needs more input https://github.com/insightsengineering/teal.modules.general/pull/742/files#r1600060687 @donyunardi would you mind scheduling something for the next week so we can handle and brainstorm when the team is back? It's a matter of whether we are satisfied from the temporary solution that @chlebowa provided, or we go with a bigger refactor as @gogonzo envisions. I would say this card is blocked until we make a decision |
We (@pawelru , @chlebowa and @averissimo) discussed several propositions. Instead of having a function to interact with a Example below is a alternative way of specifying ReportCard to callback function (please see the link) teal.modules.general/R/tm_g_distribution.R Line 1279 in 54cd391
{{ as.yaml(filter_panel_api$get_filter_state()) } # resolveDocParam.teal_slices
### Plot
{{
if (input$tabs == "Histogram") {
dist_r()
} else if (input$tabs == "QQplot") {
qq_r()
}
}} # resolveDocParam.ggplot
### Statistics table
{{ common_q()[["summary_table"]] }} # resolveDocParam.data.frame
### Tests table
{{ tests_r() }} # resolveDocParam.data.frame
{{
if (length(comment)) {
sprintf("### Comment\n\n%s", comment)
}
}} # resolveDocParam.character
### R code
{{ teal.code::get_code(output_q()) }} # resolveDocParam.character
Above content will be parsed by internal Another option is to create a Rmarkdown file which produces another R markdown file. So that code chunks can have asis
|
@m7pr Thanks for looking into my PRs. #742 was the implementation for which we had tentatively agreed some time ago but we withhled further work until it could be put in a broader context of a |
Feature description
Card functions being hard coded preclude the app dev and app user from shaping the report.
If there were an argument for a card function, one could customize their report without having to duplicate and modify a module.
Code of Conduct
Contribution Guidelines
Security Policy
The text was updated successfully, but these errors were encountered: