R/l_getFromTourPath.R

# #' @title Create a loon tour object from path name
# #' @description This function can be used to create the loon tour object from a valid widget path name.
# #' @param loon object specification (e.g. ".l0.plot")
# #' @seealso \link{\code{l_getFromPath}}
# l_getFromTourPath <- function(target) {
#
#   widgets <- loon::l_getFromPath(target)
#
#   x <- list(target = widgets,
#             "projection" = NULL)
#
#   class(x) <- c(ifelse(length(widgets) > 1,
#                        "l_tour_compound",
#                        "l_tour"),
#                 "loon")
#   x
# }

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.