r-lidar / lidR

Airborne LiDAR data manipulation and visualisation for forestry application
https://CRAN.R-project.org/package=lidR
GNU General Public License v3.0
607 stars 132 forks source link

Overwrite repeated computations #780

Closed Cidree closed 1 month ago

Cidree commented 1 month ago

Hello! I ran wrong my pixel_metrics() one time, and then I wanted to create them again without changing the output files. However, when I try to run twice the same code I receive the error:

image

I tried to add writeRaster = TRUE, but as I understand it, it's not implemented and I should use new file names and recreate them. Is there any other way to overwrite the items?

Jean-Romain commented 1 month ago

See https://gis.stackexchange.com/questions/463618/overwriting-files-in-function-pixel-metrics/463629#463629