Skip to content
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

shinyApp chunk in vignettes only runs if is in interactive mode #741

Merged
merged 4 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading