View source: R/select_user_f.R
select_user | R Documentation |
Called by the select_user module in the example app and loads a .tif file as a SpatRaster
select_user(raster_path, logger = NULL)
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 |
a SpatRaster object
Simon Smart simon.smart@cantab.net
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')
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.