resp_shape.Rd
This function is called by the resp_shape module and loads a shapefile into an sf object. Inspired by a function written by Paula Moraga here: https://www.paulamoraga.com/book-geospatial/sec-shinyexample.html#uploading-data
resp_shape(shpdf, logger = NULL)
dataframe. As produced by shiny::fileInput
, containing name
and
datapath
columns
Stores all notification messages to be displayed in the Log Window. Insert the logger reactive list here for running in shiny, otherwise leave the default NULL
an sf object
shpdf <- data.frame(
datapath = list.files(system.file("extdata", "shapes", package = "disagapp"), full.names = TRUE),
name = list.files(system.file("extdata", "shapes", package = "disagapp")))
shape <- resp_shape(shpdf)