Opens hovercraft book, a Shiny app that shows every feature of the package on one page, in six parts: getting
started, content, interaction, look, tips from Shiny, and tables. Each section is one feature: a live figure to rest
the pointer on, a sentence of choices that change it, the R code that makes what you see (ready to copy), a short
list of what to test, and the Shiny inputs the page sends. The code a section shows is the code that draws its
figure. The index has a search box, and the checklist (the key C) shows one test step at a time and ticks a step
when the server receives the input that proves it.
Arguments
- section
The section to open on, or
NULL(the default) for the first: one of"start","placement","templates","disabled","pins","pin_limits","more","more_button","inputs","words","looks","size","colours","markers","server","output","tables","columns","table_pins","in_place"or"table_server".- ...
Must be empty. It makes a misspelt argument an error.
- checklist
TRUEto open with the checklist on;FALSE(the default) to open without it.- run
TRUE(the default) to run the app, which needs an interactive R session;FALSEto return it.
Value
With run = FALSE, the app, a shiny.appobj. With run = TRUE, what shiny::runApp() returns when the
app stops.
Details
The book needs the suggested packages shiny and bslib; its table sections also need DT or reactable. Its
files are in system.file("book", package = "hovercraft").
Unlike the other functions of the package, its name does not start with tip_: it opens the package's own book,
not a tip.
Examples
app <- hovercraft_book(section = "pins", run = FALSE)
#> Loading required package: shiny
inherits(app, "shiny.appobj")
#> [1] TRUE