Generates button that allows to turn on and turn off annotations tool.

hypothesisOnOff(
  initShow = TRUE,
  labelShow = "Enable Annotations",
  labelHide = "Disable Annotations"
)

Arguments

initShow

Define initial state of annotations. When FALSE, annotations are turned off.

labelShow, labelHide

Label to be shown in the button when annotations are hidden and shown respectively.

Value

A 'button' shiny.tag object, responsible for enabling/disabling of the package functionality.