NEWS.md
    rasterise_buildings() that clear temporary files used by the terra package, as these may cause the function output to go missing later on (if export directory is not specified).Helper function raster_class_area(). The use of terra::extract() may output an additional third area column that is unused. Only keep first 2 columns of output.
Fix error in rasterise_buildings(). Getting the files for land use rasters resulted in an error (e.g. multiple files). Syntax for re-naming for the output using the glue::glue() function also did not work within package environment.
In get_buildings_osm(), add removal of invalid building polygons which remained in spite of st_make_valid(). Related to https://github.com/r-spatial/sf/issues/1649. Also, add arguments for sf::st_write() (e.g. driver, delete_dsn, append).
In rasterise_buildings_osm()
NULL, as multiple years may not necessarily be analysed. Add section to rasterise buildings without information on the ‘year’. Assumes that only one population/landuse rasters were generated in pre-processing step too; if there are multiple, uses the first object for analysis.terra::rast() object) to be input directly as argument, or alternatively supply file path to the raster file.sf_buildings and sf_pop if supplied; similar crs between sf_buildings and rastertemplate).raster_template, and replaced with raster from argument land_relative_density.