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

[Bug]: tm_variable_browser Warning: Error in if: argument is of length zero #804

Closed
3 tasks done
m7pr opened this issue Nov 20, 2024 · 1 comment
Closed
3 tasks done
Labels
bug Something isn't working core

Comments

@m7pr
Copy link
Contributor

m7pr commented Nov 20, 2024

What happened?

When running example

# CDISC example data
library(sparkline)
data <- teal_data()
data <- within(data, {
  ADSL <- rADSL
  ADTTE <- rADTTE
})
join_keys(data) <- default_cdisc_join_keys[names(data)]

app <- init(
  data = data,
  modules = modules(
    tm_variable_browser(
      label = "Variable browser"
    )
  )
)
if (interactive()) {
  shinyApp(app$ui, app$server)
}

Open the app, and select second dataset

Plot does not show + console prints an error
image

> if (interactive()) {
+   shinyApp(app$ui, app$server)
+ }

Listening on http://127.0.0.1:7659
Warning: Error in if: argument is of length zero
  122: getDims
  121: catch
  120: value[[3L]]
  119: tryCatchOne
  118: tryCatchList
  117: tryCatch
  116: do
  115: hybrid_chain
  114: <reactive:plotObj>
   98: drawReactive
   85: renderFunc
   84: output$teal-teal_modules-variable_browser-module-variable_plot-plot_main
    3: runApp
    2: print.shiny.appobj
    1: <Anonymous>

sessionInfo()

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.
@m7pr m7pr added bug Something isn't working core labels Nov 20, 2024
@m7pr
Copy link
Contributor Author

m7pr commented Nov 25, 2024

I think I must have some outdated versions of packages.

@m7pr m7pr closed this as completed Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core
Projects
None yet
Development

No branches or pull requests

1 participant