diff --git a/man/f7Toast.Rd b/man/f7Toast.Rd index 10863289..4a1d9cfc 100644 --- a/man/f7Toast.Rd +++ b/man/f7Toast.Rd @@ -41,10 +41,10 @@ Adding icon will hide the close button.} \code{f7Toast} creates a small toast notification from the server side. } \examples{ -if (interactive()) { - library(shiny) - library(shinyMobile) - shinyApp( +library(shiny) +library(shinyMobile) + +app <- shinyApp( ui = f7Page( title = "Toast", f7SingleLayout( @@ -60,6 +60,8 @@ if (interactive()) { ) }) } - ) -} +) + +if (interactive() || identical(Sys.getenv("TESTTHAT"), "true")) app + }