R/callback_layer.R

Defines functions callback_layer

callback_layer <- function(target, ...) {

  widget <- l_getPlots(target)

  layers <- loon::l_layer_getChildren(widget)
  # model layer
  if(length(layers) == 1) return(NULL)

  lapply(setdiff(layers, "model"),
         function(layer) {
           l_layer_callback(widget, layer, ...)
         })
}

Try the loon.tourr package in your browser

Any scripts or data that you put into this service are public.

loon.tourr documentation built on Oct. 27, 2021, 5:09 p.m.