Skip to contents

Helper function to check if new pipeline repository is loaded; see 'Examples'

Usage

check_new_repository_loaded(
  component_container,
  pipeline,
  repository_class = NA,
  session = shiny::getDefaultReactiveDomain()
)

Arguments

component_container

A 'RAVEShinyComponentContainer' instance

pipeline

A pipeline instance

repository_class

Expected repository class; default is arbitrary

session

A shiny session

Value

Logical TRUE or FALSE is new repository is loaded

Examples



if (FALSE) { # \dontrun{

shiny::bindEvent(
  ravedash::safe_observe({
    if (!ravedash::on_new_repository_loaded()) {
      return()
    }

    # Handle event when new repository is loaded

  }, priority = 1001),
  ravedash::watch_data_loaded(),
  ignoreNULL = FALSE,
  ignoreInit = FALSE
)


} # }