devtools check() completed

This commit is contained in:
2026-01-26 11:14:12 +00:00
parent 7f08c170c0
commit 9d81f5e37d
4 changed files with 28 additions and 1 deletions

View File

@@ -4,8 +4,12 @@ Version: 0.0.0.9000
Authors@R: Authors@R:
person("Craig", "Williams", , "craig@avsdev.uk", role = c("aut", "cre")) person("Craig", "Williams", , "craig@avsdev.uk", role = c("aut", "cre"))
Description: Replaces the standard shiny disconnect handler with a nice banner Description: Replaces the standard shiny disconnect handler with a nice banner
and faded screen and faded screen.
License: GPL (>= 3) License: GPL (>= 3)
Encoding: UTF-8 Encoding: UTF-8
Roxygen: list(markdown = TRUE) Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.3 RoxygenNote: 7.3.3
Imports:
htmltools
Suggests:
shiny

View File

@@ -1,2 +1,3 @@
# Generated by roxygen2: do not edit by hand # Generated by roxygen2: do not edit by hand
export(useBannerDisconnectHandler)

View File

@@ -5,8 +5,10 @@
#' @export #' @export
#' #'
#' @examples #' @examples
#' \dontrun{
#' x <- shiny::fluidPage(useBannerDisconnectHandler()) #' x <- shiny::fluidPage(useBannerDisconnectHandler())
#' shiny::shinyApp(x, function(...) { stop("Server stop") }) #' shiny::shinyApp(x, function(...) { stop("Server stop") })
#' }
useBannerDisconnectHandler <- function() { useBannerDisconnectHandler <- function() {
if (getOption("shiny.minified", TRUE)) { if (getOption("shiny.minified", TRUE)) {
js <- "bannerDisconnectHandler.min.js" js <- "bannerDisconnectHandler.min.js"

View File

@@ -0,0 +1,20 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PrettyShinyDisconnectHandler.R
\name{useBannerDisconnectHandler}
\alias{useBannerDisconnectHandler}
\title{Replaces the standard shiny disconnect handler with a banner}
\usage{
useBannerDisconnectHandler()
}
\value{
The disconnect handler
}
\description{
Replaces the standard shiny disconnect handler with a banner
}
\examples{
\dontrun{
x <- shiny::fluidPage(useBannerDisconnectHandler())
shiny::shinyApp(x, function(...) { stop("Server stop") })
}
}