Skip to content

Commit

Permalink
Make sure the code chunks does not break because of warnings (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav authored Jan 30, 2025
1 parent da411da commit 2c44890
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions vignettes/custom-basic-table-arguments.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ For multi-table case, per table (`basic_table_args_table`) and then default (`ba

## Example - Single-Table Module

```{r echo=TRUE}
```{r warning=FALSE}
library(shiny)
library(teal.widgets)
library(magrittr)
Expand Down Expand Up @@ -85,8 +85,8 @@ server <- function(input, output, session) {
)
output$table1 <- renderPrint(eval(table_expr))
}
```
```{r echo=TRUE, eval = FALSE}
shinyApp(ui, server)
if (interactive()) {
shinyApp(ui, server)
}
```
8 changes: 4 additions & 4 deletions vignettes/custom-ggplot2-arguments.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ To solve the problem please use `::` to prefix it directly to a specific package

## Loading libraries and data

```{r echo=TRUE, warning=FALSE, message=FALSE}
```{r warning=FALSE}
library(shiny)
library(ggplot2)
library(teal.widgets)
Expand Down Expand Up @@ -104,8 +104,8 @@ server <- function(input, output, session) {
print(plot_expr)
output$plot1 <- renderPlot(eval(plot_expr))
}
```
```{r echo=TRUE, eval = FALSE}
shinyApp(ui, server)
if (interactive()) {
shinyApp(ui, server)
}
```

0 comments on commit 2c44890

Please sign in to comment.