I want to generate a DEM using a point cloud (.las) for which I tried reading it in R using
readLAS command and none of it seems to work.
The LASfile is not being read at all. The error is :
Error in readBin(con, "raw", size = 1, n = 4, endian = "little") : can only read from a binary connection In addition: Warning message: In file(LASfile, open = "rb") : file("") only supports open = "w+" and open = "w+b": using the former
And the code is:
library(lidR) library(rLiDAR) library(rlas) setwd("D:/Thing/Path") LASfile <- system.file("extdata", "ABCD.las", package="rLiDAR") rLAS <- readLAS(LASfile, short = TRUE)