Some functions like [get_tiles] return multiple separate files when it can be useful to have a single larger raster instead. This function is a thin wrapper over [sf::gdal_utils(util = "warp")], making it easy to collapse those multiple raster files into a single TIFF.
merge_rasters( input_rasters, output_raster = tempfile(fileext = ".tif"), options = character(0), force_fallback = FALSE )
A character vector containing the file paths to the georeferenced rasters you want to use.
The file path to save the merged georeferenced raster to.
Optionally, a character vector of options to be passed directly to [sf::gdal_utils].
Logical: if TRUE, uses the much slower fallback method by default. This is used for testing purposes and is not recommended for use by end users.