We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
datanames
Possible Edge case:
datanames ≠ "all"
all
In the sample app (code below) we can observe this when comparing ls(data(), all.names = TRUE) and get_code(data())
ls(data(), all.names = TRUE)
get_code(data())
note: cbind is also not store in .raw_data
cbind
.raw_data
pkgload::load_all("teal") library(teal) data <- teal_data() |> within({ iris <- iris mtcars <- mtcars new_column <- data.frame(what = "new_column") cbind2 <- function(lhs, rhs) cbind(lhs, rhs) iris <- cbind2(iris, data.frame(new_column)) }) app <- init( data = data, modules = module( ui = function(id) { shiny::tagList( shiny::tags$h3("Code in module"), shiny::verbatimTextOutput(shiny::NS(id, "code")), shiny::tags$h3("Contents of data() in module"), shiny::verbatimTextOutput(shiny::NS(id, "contents")), example_module()$ui(id) ) }, server = function(id, data) { moduleServer(id, function(input, output, session) { output$contents <- renderText({ paste( "Available variables in the qenv env:", paste(ls(teal.code::get_env(data()), all.names = TRUE), collapse = ", ") ) }) output$code <- renderText({ teal.code::get_code(data()) |> paste(collapse = "\n") }) }) example_module()$server(id, data) }, datanames = "iris" ) ) shiny::runApp(app)
No response
The text was updated successfully, but these errors were encountered:
tests: fix test to avoid #1390
3546c3d
[.qenv
@id
@warnings
@messages
No branches or pull requests
What happened?
Possible Edge case:
datanames ≠ "all"
(is NOT set toall
)datanames
are not includedIn the sample app (code below) we can observe this when comparing
ls(data(), all.names = TRUE)
andget_code(data())
note:
cbind
is also not store in.raw_data
Sample App code
sessionInfo()
No response
Relevant log output
No response
Code of Conduct
Contribution Guidelines
Security Policy
The text was updated successfully, but these errors were encountered: