Skip to content
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

Capture output from modules. #694

Open
samussiah opened this issue Jul 12, 2022 · 1 comment
Open

Capture output from modules. #694

samussiah opened this issue Jul 12, 2022 · 1 comment
Assignees
Milestone

Comments

@samussiah
Copy link
Contributor

samussiah commented Jul 12, 2022

@jwildfire, is this the functionality you were thinking?

mod_server <- function(input, output, session, params) {
    run_code_and_stuff <- reactive({
        # code and stuff
        return(something)
    })

    output$chart <- renderSomething({ run_code_and_stuff()$display })

    # Return reactive output that will be accessible across the application.
    return(run_code_and_stuff)
}
@samussiah samussiah self-assigned this Jul 12, 2022
@jwildfire
Copy link
Contributor

Yeah, something like that could definitely work!

We might also want to tie this in to some of the new and improved chart render functions in safetyCharts. See SafetyGraphics/safetyCharts#101 and SafetyGraphics/safetyCharts#109

@jwildfire jwildfire added this to the v2.2.0 milestone Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants