R/widget.R

Defines functions sas_widget

sas_widget <- function(
  lst,
  log,
  capture,
  height = "auto",
  width = "auto",
  elementId = NULL
) {
  # forward options using x
  x <- list(
    lst = lst,
    log = log,
    capture = capture
  )

  # create widget
  htmlwidgets::createWidget(
    name = 'sas_widget',
    x,
    height = height,
    width = width,
    sizingPolicy = htmlwidgets::sizingPolicy(
      padding = 0,
      viewer.fill = TRUE,
      browser.fill = TRUE
    ),
    package = 'sasquatch',
    elementId = elementId
  )
}

Try the sasquatch package in your browser

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

sasquatch documentation built on Feb. 28, 2026, 1:07 a.m.