Skip to contents

Preaggregated WorldPop data for spatialEpisim

Usage

spatialEpisim.data_example(path = NULL)

Arguments

path

The `path` argument passed to [system.file], which is the path underneath the package extdata folder to a binary file. See that function's documentation for `...` to better understand this function.

Value

An absolute path to the file(s).

Examples

terra::rast(spatialEpisim.data_example("COD/COD.grd"))
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'rast': no file found

readxl::read_xlsx(spatialEpisim.data_example("shortlistseeddata.xlsx"))
#> Error in system.file("extdata", path, package = "spatialEpisim.data",     mustWork = TRUE): no file found