Skip to content

Commit

Permalink
Make sure the code chunks does not break because of warnings (#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav authored Feb 3, 2025
1 parent abcb8d5 commit d72818e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions vignettes/teal-modules-clinical.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ See the full index of package functions & modules [here](https://insightsenginee
A `teal.modules.clinical` module needs to be embedded inside a `shiny`/`teal` application to interact with it.
A simple application including a bar chart module could look like this:

```{r app, message = FALSE, results = "hide"}
```{r app, eval=FALSE}
library(teal.modules.clinical)
library(nestcolor)
Expand Down Expand Up @@ -82,9 +82,7 @@ app <- init(
)
)
)
```
```{r shinyapp, eval = FALSE}
shinyApp(app$ui, app$server)
```

Expand Down Expand Up @@ -170,7 +168,7 @@ app <- init(
Finally, we use `shiny` to launch the application:

```r
if (interactive()) shinyApp(app$ui, app$server)
shinyApp(app$ui, app$server)
```

Some `teal.modules.clinical` modules allow for the specification of arguments using
Expand All @@ -194,7 +192,7 @@ app <- init(
)
)

if (interactive()) shinyApp(app$ui, app$server)
shinyApp(app$ui, app$server)
```

Please refer to the [API reference](https://insightsengineering.github.io/teal.modules.clinical/latest-tag/reference/)
Expand Down

0 comments on commit d72818e

Please sign in to comment.