Called by the select_user module in the example app and loads a .tif file as a SpatRaster

select_user(raster_path, logger = NULL)

Arguments

raster_path

character. Path to file to be loaded

logger

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

Value

a SpatRaster object

Author

Simon Smart simon.smart@cantab.net

Examples

if (check_suggests(example = TRUE)) {
  raster_path <- list.files(system.file("extdata", "wc", package = "shinyscholar"),
  full.names = TRUE)
  raster <- select_user(raster_path)
} else {
  message('reinstall with install.packages("shinyscholar", dependencies = TRUE)
  to run this example')
}