Skip to content

Commit

Permalink
simpler check if in pkgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelru committed Sep 18, 2024
1 parent 670c341 commit d1fccfc
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion vignettes/teal-modules-general.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ url <- roxy.shinylive::create_shinylive_url(code)
cat(sprintf("[Open in Shinylive](%s)\n\n", url))
```

```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && requireNamespace("pkgdown", quietly = TRUE) && getFromNamespace("in_pkgdown", "pkgdown")()}
```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && identical(Sys.getenv("IN_PKGDOWN"), "true")}
knitr::include_url(url, height = "800px")
```

Expand Down
2 changes: 1 addition & 1 deletion vignettes/using-association-plot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,6 @@ url <- roxy.shinylive::create_shinylive_url(code)
cat(sprintf("[Open in Shinylive](%s)\n\n", url))
```

```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && requireNamespace("pkgdown", quietly = TRUE) && getFromNamespace("in_pkgdown", "pkgdown")()}
```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && identical(Sys.getenv("IN_PKGDOWN"), "true")}
knitr::include_url(url, height = "800px")
```
2 changes: 1 addition & 1 deletion vignettes/using-bivariate-plot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,6 @@ url <- roxy.shinylive::create_shinylive_url(code)
cat(sprintf("[Open in Shinylive](%s)\n\n", url))
```

```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && requireNamespace("pkgdown", quietly = TRUE) && getFromNamespace("in_pkgdown", "pkgdown")()}
```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && identical(Sys.getenv("IN_PKGDOWN"), "true")}
knitr::include_url(url, height = "800px")
```
2 changes: 1 addition & 1 deletion vignettes/using-cross-table.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,6 @@ url <- roxy.shinylive::create_shinylive_url(code)
cat(sprintf("[Open in Shinylive](%s)\n\n", url))
```

```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && requireNamespace("pkgdown", quietly = TRUE) && getFromNamespace("in_pkgdown", "pkgdown")()}
```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && identical(Sys.getenv("IN_PKGDOWN"), "true")}
knitr::include_url(url, height = "800px")
```
2 changes: 1 addition & 1 deletion vignettes/using-data-table.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@ url <- roxy.shinylive::create_shinylive_url(code)
cat(sprintf("[Open in Shinylive](%s)\n\n", url))
```

```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && requireNamespace("pkgdown", quietly = TRUE) && getFromNamespace("in_pkgdown", "pkgdown")()}
```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && identical(Sys.getenv("IN_PKGDOWN"), "true")}
knitr::include_url(url, height = "800px")
```
2 changes: 1 addition & 1 deletion vignettes/using-outliers-module.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,6 @@ url <- roxy.shinylive::create_shinylive_url(code)
cat(sprintf("[Open in Shinylive](%s)\n\n", url))
```

```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && requireNamespace("pkgdown", quietly = TRUE) && getFromNamespace("in_pkgdown", "pkgdown")()}
```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && identical(Sys.getenv("IN_PKGDOWN"), "true")}
knitr::include_url(url, height = "800px")
```
2 changes: 1 addition & 1 deletion vignettes/using-regression-plots.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,6 @@ url <- roxy.shinylive::create_shinylive_url(code)
cat(sprintf("[Open in Shinylive](%s)\n\n", url))
```

```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && requireNamespace("pkgdown", quietly = TRUE) && getFromNamespace("in_pkgdown", "pkgdown")()}
```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && identical(Sys.getenv("IN_PKGDOWN"), "true")}
knitr::include_url(url, height = "800px")
```
2 changes: 1 addition & 1 deletion vignettes/using-response-plot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,6 @@ url <- roxy.shinylive::create_shinylive_url(code)
cat(sprintf("[Open in Shinylive](%s)\n\n", url))
```

```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && requireNamespace("pkgdown", quietly = TRUE) && getFromNamespace("in_pkgdown", "pkgdown")()}
```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && identical(Sys.getenv("IN_PKGDOWN"), "true")}
knitr::include_url(url, height = "800px")
```
2 changes: 1 addition & 1 deletion vignettes/using-scatterplot-matrix.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,6 @@ url <- roxy.shinylive::create_shinylive_url(code)
cat(sprintf("[Open in Shinylive](%s)\n\n", url))
```

```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && requireNamespace("pkgdown", quietly = TRUE) && getFromNamespace("in_pkgdown", "pkgdown")()}
```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && identical(Sys.getenv("IN_PKGDOWN"), "true")}
knitr::include_url(url, height = "800px")
```
2 changes: 1 addition & 1 deletion vignettes/using-scatterplot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,6 @@ url <- roxy.shinylive::create_shinylive_url(code)
cat(sprintf("[Open in Shinylive](%s)\n\n", url))
```

```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && requireNamespace("pkgdown", quietly = TRUE) && getFromNamespace("in_pkgdown", "pkgdown")()}
```{r shinylive_iframe, echo = FALSE, out.width = '150%', out.extra = 'style = "position: relative; z-index:1"', eval = knitr::is_html_output() && identical(Sys.getenv("IN_PKGDOWN"), "true")}
knitr::include_url(url, height = "800px")
```

0 comments on commit d1fccfc

Please sign in to comment.