I have used this code many times over the past year and am now getting an odd error when I try to calculate rumple index.
Here is a simplified version of the code.
library(lidR)
lidar <-readALSLAS("F:/FSF_lidR/Plot_NLAS/FSF_1_N.las", filter = "-keep_classification 3 4 5 -drop_z_below 0 -drop_z_above 48") # read in clipped plot LAS data
las <-filter_surfacepoints(lidar,1)
ri <- rumple_index(las$X,las$Y,las$Z)
Error message:
Error in loadNamespace(x): there is no package called ‘geometry’
'rumple_index' returned NA.
Has there possibly been an update to a supporting package I need to reinstall? Thanks for any advice or thoughts.
MW