Skip to content

Commit

Permalink
Fix an example
Browse files Browse the repository at this point in the history
  • Loading branch information
gogonzo committed Dec 19, 2024
1 parent 5d2249b commit 706fdad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vignettes/including-data-in-teal-applications.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,15 @@ the `teal_data` instance, without being visible in the `teal` summary and filter
```{r}
my_data <- teal_data()
my_data <- within(my_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())
app <- init(data = my_data, modules = example_module())
if (interactive()) {
shinyApp(app$ui, app$server)
Expand Down

0 comments on commit 706fdad

Please sign in to comment.