.gadget_run | R Documentation |
Functions documented on this page are primarily intended for package developers wishing to implement gadgets (graphical interfaces) to navigating AnVIL-generated tables.
.gadget_run()
presents the user with a
tibble-navigating gadget, returning the value of DONE_FUN
if
a row of the tibble is selected, or NULL.
.gadget_run(title, tibble, DONE_FUN)
title |
character(1) (required) title to appear at the base of the gadget, e.g., "AnVIL Workspaces". |
tibble |
a |
DONE_FUN |
a function of two arguments, |
.gadget_run()
returns the result of DONE_FUN()
if a row
has been selected by the user, or NULL
if no row is selected
(the user presses Cancel
, or Done
prior to selecting any
row).
## Not run:
tibble <- avworkspaces()
DONE_FUN <- function(tibble, row_selected) {
selected <- slice(tibble, row_selected)
with(selected, paste0(namespace, "/", name))
}
.gadget_run("AnVIL Example", tibble, DONE_FUN)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.