R/get_bscui_svg.R

Defines functions get_bscui_svg

Documented in get_bscui_svg

###############################################################################@
#' Get the displayed SVG
#'
#' @param proxy a [`bscui_Proxy`] object
#'
#' @return the provided proxy object
#'
#' @example inst/examples/shiny-example.R
#'
#' @export
#'
get_bscui_svg <- function(proxy){
   if(!any(class(proxy) %in% "bscui_Proxy")){
      stop(
         "You can use get_bscui_svg only within 'shiny' and using bscui_Proxy"
      )
   }
   data <- list(id = proxy$id)
   proxy$session$sendCustomMessage("bscuiShinyGetSvg", data)
   proxy
}

Try the bscui package in your browser

Any scripts or data that you put into this service are public.

bscui documentation built on June 8, 2025, 11:01 a.m.