Load all recognised vector and raster files within a given directory.

load_dir(path)

Arguments

path

String. The path to the directory where spatial layers are stored.

Value

list of layers in the form of sf or SpatRaster objects

Examples

   pkg_layers <- system.file(path = "cartography/CMR/", package = "mapMCDA")
   cmr <- load_dir(pkg_layers)