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 Spatial* or RasterLayer objects

Examples

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