Closed chlebowa closed 5 months ago
The app works all right with iris
.
I saw the same error when trying to use the CO2
dataset with another example app.
Error goes away if CO2
is passed through CO2 <- as.data.frame(CO2)
CO2 <- data.frame(CO2)
. This is most likely connected to the labels
attribute of the dataset.
Exactly, attr(dataset, "label", exact = TRUE)
on teal.slice::init_filtered_dataset
would solve the issue
That is, when trying to extrapolate the label on the S3 method arguments an exact match would solve this.
A (?better?) alternative would be to ignore the default value if attr(dataset, "label")
is not a string (with or without the exact = TRUE
).
edit: although this would a lot of complexity to the argument code
I think ensuring exact matching is the better way to go.
I guess this should be moved to teal.slice
then. Would you do the honors?
Error when attempting to run the example app for
teal.modules.general::tm_a_regression
.