-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Datanames in vignettes #1434
base: main
Are you sure you want to change the base?
Datanames in vignettes #1434
Conversation
Code Coverage Summary
Diff against main
Results for commit: 5cc7110 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 27 suites 10m 35s ⏱️ Results for commit 5cc7110. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Results for commit 5e0fe5a ♻️ This comment has been updated with latest results. |
data <- data.frame(id = 1:10, x = 11:20) | ||
.data2 <- data.frame(id = 1:20, data_id = c(1:10, 1:10), y = 21:30) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding here a useful case, either using a function or combining 2 datasets
data <- data.frame(id = 1:10, x = 11:20) | |
.data2 <- data.frame(id = 1:20, data_id = c(1:10, 1:10), y = 21:30) | |
data <- data.frame(id = 1:10, x = 11:20) | |
.add_column <- function(x) cbind(data, diff_x = mean(data$x) - data$x) | |
data <- .add_column(data) |
data <- data.frame(id = 1:10, x = 11:20) | |
.data2 <- data.frame(id = 1:20, data_id = c(1:10, 1:10), y = 21:30) | |
.data1 <- data.frame(id = 1:10, x = 11:20) | |
.data2 <- data.frame(id = 1:10, y = 11:20) | |
data <- merge(.data1, .data2) |
ls(my_data) | ||
names(my_data) | ||
|
||
app <- teal::init(data = my_data, modules = example_module()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can ommit the double colon prefix, as init
is used without above in this vignette
app <- teal::init(data = my_data, modules = example_module()) | |
app <- init(data = my_data, modules = example_module()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, absolutely. It is automatic as for me teal::init
is an institution :D
closing #1380 and insightsengineering/teal.data#338
set_datanames