Jean-Romain / lidRplugins

Extra functions and algorithms for lidR package
42 stars 15 forks source link

Hamraz2016() not working #15

Closed Johanson20 closed 2 years ago

Johanson20 commented 2 years ago

I recently updated my liDRplugins package in R to version 0.3.0, and when it's called with the segment_trees() function, it throws this error:

"Error: lidR::lasclipCircle is defunct. Use clip_circle instead."

Prior to my update, it worked fine. You can replicate this error with the documentation or help function for hamraz2016():

LASfile <- system.file("extdata", "MixedConifer.laz", package="lidR")
las <- readLAS(LASfile, select = "xyz", filter = "-drop_z_below 0")
col <-  pastel.colors(200)

las <- segment_trees(las, hamraz2016())
Jean-Romain commented 2 years ago

Your example runs fine on my machine. I think you did not updated lidRplugins properly. Version numbers are meaningless for lidRplugins. The package is not well and actively maintained and I do not respect versioning. So version 0.3.0 does not necessarily means you have the latest

Johanson20 commented 2 years ago

Okay, it works now. I had to re-install the package and updated my other packages before it worked.