fuzzyhelp | R Documentation |
Users no longer have to remember the exact name to find help, vignettes,
and demo.
A shiny gadget helps you to find a topic fuzzily.
Click radio buttons to switch preview contents.
Click "Done" or "Cancel" to close the widget.
When background = FALSE
, the "Done" button will also hook help
,
vignette
, or demo
, accordingly.
fuzzyhelp(
query = "",
method = getOption("fuzzyhelp.method", "fzf"),
background = getOption("fuzzyhelp.background", TRUE),
viewer = shiny::paneViewer()
)
query |
An initial query to search for the help system. |
method |
A fuzzy match method to use. Choices are "fzf" and "lv"
(levenstein). The method "lv" is faster but can be less accurate. The
default value can be tweaked by |
background |
Whether to run a shiny gadget in a background process.
The default value is |
viewer |
Specify where the gadget should be displayed–viewer pane,
dialog window, or external browser–by passing in a call to one of the
|
If the background
argument is TRUE
, then the return value inherits from
callr::r_bg()
. Otherwise, NULL
is returned.
The default fuzzy match algorithm is a simplified version of https://github.com/junegunn/fzf. The implementation in this package excludes bonuses from relationship with matched characters and their previous characters.
if (FALSE) {
fuzzyhelp()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.