| shiny.webawesome-package | R Documentation |
Provides an R and Shiny interface to the Web Awesome component library.
shiny.webawesome is a generator-driven package that exposes Web Awesome
components as R functions for use in Shiny applications. Most component
wrappers are generated from the upstream Web Awesome metadata file
custom-elements.json, which the package treats as its primary component
source of truth.
The package aims to stay close to upstream Web Awesome names, conventions, and component APIs while adopting normal R conventions such as snake_case argument names. Because Web Awesome lives in the browser and Shiny spans both server and client, the package also includes a curated Shiny binding layer plus a small set of package-level helpers for layout, browser commands, and app-local JavaScript.
The package exposes several complementary surfaces:
generated component wrappers such as wa_button() and wa_select()
layout helpers such as webawesomePage() and wa_container()
generated Shiny bindings and update helpers for selected interactive components
command-layer helpers such as wa_set_property() and wa_call_method()
the narrow browser-glue helper wa_js()
the package helper wa_version() for reporting the bundled Web Awesome
version
The package currently uses the option shiny.webawesome.warnings to control
selected runtime warnings and diagnostics.
This option should be a named list. Known keys currently include:
missing_tree_item_id
command_layer
command_layer_debug
Example:
options(shiny.webawesome.warnings = list(command_layer_debug = TRUE))
For an introductory guide, see
vignette("get-started", package = "shiny.webawesome"). For
function-specific details, use the package help pages such as
?webawesomePage, ?wa_set_property, ?wa_call_method, ?wa_js, and
?wa_version.
Maintainer: M. B. Anand privateanand@gmail.com
Useful links:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.