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

POC Redesign of teal.reporter #862

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

POC Redesign of teal.reporter #862

wants to merge 12 commits into from

Conversation

m7pr
Copy link
Contributor

@m7pr m7pr commented Feb 24, 2025

Companion to

code
devtools::load_all('../teal.reporter')
devtools::load_all('../teal')
devtools::load_all('.')

# general data example
data <- teal_data()
data <- within(data, {
  require(nestcolor)
  CO2 <- CO2
})

app <- init(
  data = data,
  modules = modules(
    tm_a_regression(
      label = "Regression",
      response = data_extract_spec(
        dataname = "CO2",
        select = select_spec(
          label = "Select variable:",
          choices = "uptake",
          selected = "uptake",
          multiple = FALSE,
          fixed = TRUE
        )
      ),
      regressor = data_extract_spec(
        dataname = "CO2",
        select = select_spec(
          label = "Select variables:",
          choices = variable_choices(data[["CO2"]], c("conc", "Treatment")),
          selected = "conc",
          multiple = TRUE,
          fixed = FALSE
        )
      )
    )
  )
)
if (interactive()) {
  shinyApp(app$ui, app$server)
}
image

@m7pr m7pr marked this pull request as draft February 24, 2025 13:49
@m7pr m7pr added the core label Feb 24, 2025
filter_panel_api,
response,
regressor,
reporter,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reporter is used in teal::append_reporter_module to determine whether reporter previewer should be displayed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine if it stays

@m7pr m7pr changed the title [WIP] teal.reporter redesign poc POC Redesign of teal.reporter Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant