From 294e641b427fe297acad1ac9acd47dc9d0228547 Mon Sep 17 00:00:00 2001 From: Veerle van Leemput Date: Fri, 22 Mar 2024 14:44:15 +0100 Subject: [PATCH] update docs --- man/f7Toast.Rd | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 + }