Skip to content

Commit

Permalink
shinyApp chunk in vignettes only runs if is in interactive mode (#741)
Browse files Browse the repository at this point in the history
# Pull Request

- Fixes #740
- Fixes #729

#### Changes description

- add `eval=base::interactive()` to chunk options in vignettes

### How to test

- Run `rmcdcheck::rmcdcheck()`
- Run `scheduled.yaml` Github action and all strategies complete
successfully
  - Currently they're taking 6h+ hours and failing
- Badge for this branch: [![Scheduled
🕰️](https://github.com/insightsengineering/teal.modules.general/actions/workflows/scheduled.yaml/badge.svg?branch=740-vignettes-shinyapp%40main)](https://github.com/insightsengineering/teal.modules.general/actions/workflows/scheduled.yaml)
  • Loading branch information
averissimo authored Apr 24, 2024
1 parent a601036 commit 272835d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 18 deletions.
3 changes: 1 addition & 2 deletions vignettes/using-association-plot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Using association plot"
author: "NEST CoreDev"
output: rmarkdown::html_vignette
runtime: shiny
vignette: >
%\VignetteIndexEntry{Using association plot}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -297,7 +296,7 @@ app <- init(

A simple `shiny::shinyApp()` call will let you run the app. Note that app is only displayed when running this code inside an `R` session.

```{r, echo=TRUE, results="hide"}
```{r, echo=TRUE, results="hide", eval=base::interactive()}
shinyApp(app$ui, app$server, options = list(height = 1024, width = 1024))
```

Expand Down
3 changes: 1 addition & 2 deletions vignettes/using-bivariate-plot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Using bivariate plot"
author: "NEST CoreDev"
output: rmarkdown::html_vignette
runtime: shiny
vignette: >
%\VignetteIndexEntry{Using bivariate plot}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -623,7 +622,7 @@ app <- init(
A simple `shiny::shinyApp()` call will let you run the app.
Note that app is only displayed when running this code inside an `R` session.

```{r, echo=TRUE, results="hide"}
```{r, echo=TRUE, results="hide", eval=base::interactive()}
shinyApp(app$ui, app$server, options = list(height = 1024, width = 1024))
```

Expand Down
3 changes: 1 addition & 2 deletions vignettes/using-cross-table.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Using cross table"
author: "NEST CoreDev"
output: rmarkdown::html_vignette
runtime: shiny
vignette: >
%\VignetteIndexEntry{Using cross table}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -139,7 +138,7 @@ app <- init(
A simple `shiny::shinyApp()` call will let you run the app.
Note that app is only displayed when running this code inside an `R` session.

```{r, echo=TRUE, results="hide"}
```{r, echo=TRUE, results="hide", eval=base::interactive()}
shinyApp(app$ui, app$server, options = list(height = 1024, width = 1024))
```

Expand Down
3 changes: 1 addition & 2 deletions vignettes/using-data-table.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Using data table"
author: "NEST CoreDev"
output: rmarkdown::html_vignette
runtime: shiny
vignette: >
%\VignetteIndexEntry{Using data table}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -110,7 +109,7 @@ app <- init(
A simple `shiny::shinyApp()` call will let you run the app.
Note that app is only displayed when running this code inside an `R` session.

```{r, echo=TRUE, results="hide"}
```{r, echo=TRUE, results="hide", eval=base::interactive()}
shinyApp(app$ui, app$server, options = list(height = 1024, width = 1024))
```

Expand Down
3 changes: 1 addition & 2 deletions vignettes/using-outliers-module.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Using outliers module"
author: "NEST CoreDev"
output: rmarkdown::html_vignette
runtime: shiny
vignette: >
%\VignetteIndexEntry{Using outliers module}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -191,7 +190,7 @@ app <- init(
A simple `shiny::shinyApp()` call will let you run the app.
Note that app is only displayed when running this code inside an `R` session.

```{r, echo=TRUE, results="hide"}
```{r, echo=TRUE, results="hide", eval=base::interactive()}
shinyApp(app$ui, app$server, options = list(height = 1024, width = 1024))
```

Expand Down
3 changes: 1 addition & 2 deletions vignettes/using-regression-plots.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Using regression plots"
author: "NEST CoreDev"
output: rmarkdown::html_vignette
runtime: shiny
vignette: >
%\VignetteIndexEntry{Using regression plots}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -270,7 +269,7 @@ app <- init(
A simple `shiny::shinyApp()` call will let you run the app.
Note that app is only displayed when running this code inside an `R` session.

```{r, echo=TRUE, results="hide"}
```{r, echo=TRUE, results="hide", eval=base::interactive()}
shinyApp(app$ui, app$server, options = list(height = 1024, width = 1024))
```

Expand Down
3 changes: 1 addition & 2 deletions vignettes/using-response-plot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Using response plot"
author: "NEST CoreDev"
output: rmarkdown::html_vignette
runtime: shiny
vignette: >
%\VignetteIndexEntry{Using response plot}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -379,7 +378,7 @@ app <- init(
A simple `shiny::shinyApp()` call will let you run the app.
Note that app is only displayed when running this code inside an `R` session.

```{r, echo=TRUE, results="hide"}
```{r, echo=TRUE, results="hide", eval=base::interactive()}
shinyApp(app$ui, app$server, options = list(height = 1024, width = 1024))
```

Expand Down
3 changes: 1 addition & 2 deletions vignettes/using-scatterplot-matrix.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Using scatterplot matrix"
author: "NEST CoreDev"
output: rmarkdown::html_vignette
runtime: shiny
vignette: >
%\VignetteIndexEntry{Using scatterplot matrix}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -157,7 +156,7 @@ app <- init(
A simple `shiny::shinyApp()` call will let you run the app.
Note that app is only displayed when running this code inside an `R` session.

```{r, echo=TRUE, results="hide"}
```{r, echo=TRUE, results="hide", eval=base::interactive()}
shinyApp(app$ui, app$server, options = list(height = 1024, width = 1024))
```

Expand Down
3 changes: 1 addition & 2 deletions vignettes/using-scatterplot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Using scatterplot"
author: "NEST CoreDev"
output: rmarkdown::html_vignette
runtime: shiny
vignette: >
%\VignetteIndexEntry{Using scatterplot}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -377,7 +376,7 @@ app <- init(
A simple `shiny::shinyApp()` call will let you run the app.
Note that app is only displayed when running this code inside an `R` session.

```{r, echo=TRUE, results="hide"}
```{r, echo=TRUE, results="hide", eval=base::interactive()}
shinyApp(app$ui, app$server, options = list(height = 1024, width = 1024))
```

Expand Down

0 comments on commit 272835d

Please sign in to comment.