1

I would like to try "lasdetectshape" in lidR package to detect line pattern objects in my point cloud.

library(lidR)
las <- readLAS("9a-1.las", select = 'xyzicnrRGB')

las <- lasdetectshape(las, shp_line, attribute = "Shape", filter = NULL)

However, getting following error:

Error in lasdetectshape(las, shp_line, attribute = "Shape", filter = NULL)   

could not find function "lasdetectshape"

I tried re-install lidR package and re-started R with no sucess.

4
  • 1
    What version of lidR have you got? What does packageVersion("lidR") say?
    – Spacedman
    Oct 19, 2019 at 7:35
  • @Spacedman, it is 2.0.2.
    – Sher
    Oct 19, 2019 at 9:39
  • 2
    This function has been introduced in version 2.1.0. Current version is 2.1.4. 2.0.2 is 8 months old
    – JRR
    Oct 19, 2019 at 10:13
  • 2
    @JRR or Spacedman please consider adding your comments as an answer so we can consider this question resolved.
    – Aaron
    Oct 19, 2019 at 21:53

1 Answer 1

1

The function lasdetectshape() was introduced in version 2.1.0. You are running an old version which is 8 months old. lidR is a constantly evolving package. New features are regularly added, internal improvement are regularly made (memory usage and speed usually) and many bugs are fixed. Try to run an up-to-date version of the package at stay informed of the change with the changelogs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.