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
tm_a_pca
Example of tm_a_pca using a character name for the dataset to extract the data does not behave the same and produces an error.
When inspecting the code, response[[i]] variable processing assumes that it's not a delayed_data object.
response[[i]]
delayed_data
teal.modules.general/R/tm_a_pca.R
Lines 304 to 310 in 99d7f02
library(teal.module.general) data <- within(teal_data(), { require(nestcolor) USArrests <- USArrests }) datanames(data) <- "USArrests" ## Delayed data (with error) teal::init( data = data, modules = teal.module.general::tm_a_pca( dat = teal.transform::data_extract_spec( dataname = "USArrests", select = select_spec( choices = teal.transform::variable_choices( data = "USArrests", c("Murder", "Assault", "UrbanPop", "Rape") ), selected = c("Murder", "Assault"), multiple = TRUE ) ) ) ) |> shiny::runApp()
Same result using example for module (that uses variable_choices with data itself instead of character)
variable_choices
# Non-delayed data (without error) teal::init( data = data, modules = tm_a_pca( dat = data_extract_spec( dataname = "USArrests", select = select_spec( choices = variable_choices( data = data[["USArrests"]], c("Murder", "Assault", "UrbanPop", "Rape") ), selected = c("Murder", "Assault"), multiple = TRUE ) ) ) ) |> shiny::runApp()
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
Problem
Example of
tm_a_pca
using a character name for the dataset to extract the data does not behave the same and produces an error.When inspecting the code,
response[[i]]
variable processing assumes that it's not adelayed_data
object.teal.modules.general/R/tm_a_pca.R
Lines 304 to 310 in 99d7f02
How to reproduce:
Expected behavior
Same result using example for module (that uses
variable_choices
with data itself instead of character)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: