-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
init - data arg - Are we planning to keep supporting a "list of objects"? Note that they don't have to be either data.frame
or MAE
any more.
#1031
Comments
Note that vignettes have been widely approved that state:
|
I don't see any real issue with us introducing this breaking change in this release. |
I think I interpret the question the wrong way before I start reading the issue related to this. 🤦🏼 Here's what I understand: Lines 122 to 126 in 92301bc
But this will work (making it a named list) We prefer user to use teal_data() for the data argument so having this limitation (not allowing data to accept list of objects) feels okay to me. The hope is that user will be encouraged to learn about the teal_data object (and how to use it). Or, at the very least, follow the right convention by passing a named list object to simplify the conversion to teal_data object. I guess we can remove/update the skipped test. |
Historically, teal_data(
dataset("iris", iris)
) and this is why we still keep accepting # accept this
init(data = teal_data(iris = iris), ...)
# instead of
init(data = list(iris = iris), ...)
|
I would go with possibility to pass only |
It seems we are in agreement. |
Originally posted by @chlebowa in #1008 (comment)
The text was updated successfully, but these errors were encountered: