-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Warn when data contains an object named "all" #1379
Labels
Comments
This was referenced Oct 15, 2024
We try to prevent the confusion when module(datanames = "all") Acceptance Criteria
|
Teal is crashing with Running data <- teal_data() |>
within({
all <- iris
})
# data <- teal_data_module(
# ui = function(id) {
# ns <- NS(id)
# actionButton(ns("submit"), label = "Load data")
# },
# server = function(id) {
# moduleServer(id, function(input, output, session) {
# eventReactive(input$submit, {
# data <- within(
# teal_data(),
# {
# all <- iris
# }
# )
# data
# })
# })
# }
# )
app <- init(
data = data,
modules = modules(
example_module("Module with transformations 1", datanames = "all")
),
title = "yada"
)
shinyApp(app$ui, app$server) |
Works after updating renv to |
pkgload::load_all("teal")
data <- teal.data::teal_data() |>
within({
all <- iris
air <- datasets::airquality
.raw_data <- mtcars
})
app <- teal::init(
data = data,
modules = teal::example_module("Module 1", datanames = "all")
)
shiny::runApp(app) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because "all" is a reserved word in
module()
, otherwise this would be ambiguous.The text was updated successfully, but these errors were encountered: