R/invoke-method.R

Defines functions invoke_method

invoke_method <- function(widget, method_name, ...) {
  pos <- length(widget$x$calls) + 1
  widget$x$calls[[pos]] <- list(
    methodName = method_name,
    args = list(...) %>%
      purrr::compact()
  )
  widget
}

Try the mapboxer package in your browser

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

mapboxer documentation built on Nov. 8, 2020, 4:21 p.m.