Skip to content

Commit 924ee8e

Browse files
committed
chore: Use rlang::is_interactive() for all @examplesIf
1 parent 3955eb8 commit 924ee8e

10 files changed

+19
-16
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ Config/testthat/edition: 3
5050
Encoding: UTF-8
5151
LazyData: true
5252
Roxygen: list(markdown = TRUE)
53-
RoxygenNote: 7.2.3
53+
RoxygenNote: 7.3.1

R/engines.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#' note that this will most likely overwrite the `glue` engine provided by the
2323
#' \pkg{glue} package.
2424
#'
25-
#' @examplesIf interactive()
25+
#' @examplesIf rlang::is_interactive()
2626
#' use_epoxy_knitr_engines()
2727
#'
2828
#' @param include The epoxy knitr engines to include. Defaults to all engines

R/shiny.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#' HTML, use `!!` before the placeholder, e.g. `{{<markup> !!<name>}}`. So
3434
#' `{{h3 !!demo}}` will create an `<h3>` tag that accepts HTML within it.
3535
#'
36-
#' @examplesIf rlang::is_installed("shiny")
36+
#' @examplesIf rlang::is_installed("shiny") && rlang::is_interactive()
3737
#' library(shiny)
3838
#'
3939
#' ui <- fluidPage(
@@ -498,7 +498,7 @@ epoxyHTML_transformer <- function(
498498
#' server -- unlike [ui_epoxy_html()], whose updates are specific to the parts
499499
#' of the data that have changed.
500500
#'
501-
#' @examplesIf rlang::is_installed("shiny")
501+
#' @examplesIf rlang::is_installed("shiny") && rlang::is_interactive()
502502
#' library(shiny)
503503
#'
504504
#' ui <- fluidPage(
@@ -655,7 +655,7 @@ epoxy_mustache_dependencies <- function() {
655655
#' [ui_epoxy_html()] or [ui_epoxy_mustache()]. When the values are updated by
656656
#' the app, `render_epoxy()` will update the values shown in the app's UI.
657657
#'
658-
#' @examplesIf rlang::is_installed("shiny")
658+
#' @examplesIf rlang::is_installed("shiny") && rlang::is_interactive()
659659
#' # This small app shows the current time using `ui_epoxy_html()`
660660
#' # to provide the HTML template and `render_epoxy()` to
661661
#' # update the current time every second.

man/epoxy.Rd

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/epoxy_transform_html.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/epoxy_transform_inline.Rd

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/render_epoxy.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/ui_epoxy_html.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/ui_epoxy_mustache.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/use_epoxy_knitr_engines.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)