tests/testthat/helper-init_leafdown.R

init_leafdown <- function() {
  states <- readRDS("res/usa1.RDS")
  states2 <- readRDS("res/usa2.RDS")
  spdfs_list <- list(states, states2)
  input <- shiny::reactiveValues(foo = "bar")
  my_leafdown <- Leafdown$new(spdfs_list, "leafdown", input)
  my_leafdown
}

Try the leafdown package in your browser

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

leafdown documentation built on Sept. 19, 2022, 9:05 a.m.