| make_shiny_search_fn | R Documentation |
search_fn Factory for textcleaner_shiny()Returns a search_fn-shaped closure (matching
textcleaner()'s own search_fn contract) for
textcleaner_shiny's wizard: instead of opening a real
browser window, it writes a DuckDuckGo results URL into store for
the app's own search modal to render in an embedded iframe. See this
file's own header comment for why a real Google results page cannot be
embedded this way at all.
Exported (not just internal) because inst/Shiny/'s own module
files are sourced into the global environment by Shiny's own app-loading
mechanism, not into the package namespace – an unexported function is
not reachable from there by its bare name.
make_shiny_search_fn(store)
store |
Function.
A |
A function(query, site, rlang) suitable for
textcleaner()'s own search_fn argument
Alexander Christensen <alexpaulchristensen@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.