Function used to initialize hypothesis annotations in Shiny app or R Markdown document.
useHypothesis(
openSidebar = TRUE,
showHighlights = c("whenSidebarOpen", "always", "never"),
theme = c("classic", "clean"),
branding = hypothesisBranding(),
sidebarAppUrl = NULL,
onLayoutChange = as_json("tryHideHypothesis"),
services = hypothesisServices(),
enableExperimentalNewNoteButton = NULL,
usernameUrl = NULL,
externalContainerSelector = NULL,
focus = NULL,
requestConfigFromFrame = NULL,
assetRoot = NULL,
notebookAppUrl = NULL,
enableShareLinks = FALSE,
...
)
A list of class 'shiny.tag.list' storing the package JS/CSS dependencies.
Set to TRUE if annotations sidebar should be opened in initial state.
Configure when annotated text should be highlighted. "whenSidebarOpen" highlights content only when annotations sidebar is open (default). The remaining options are "always" and "never".
Annotations sidebar theme. Available options "classic" (default) and "clean".
Configure annotations tool branding (e.g. sidebar background). See hypothesisBranding for possible options.
Extra arguments used for external services configuration and assets configuration. Visit config for more details.
Extra arguments passed to client configuration.