Error in rgb(points)

Hello!

I have recently run into a problem reading .ply files into RStudio. I have been using the geomorph package and .ply files of 3D models used with the digit.fixed function. I have successfully worked on over 20 files, but 10 are not being read into R. The following error message pops up:

Error in rgb(points[, 4], points[, 5], points[, 6], maxColorValue = 255) : 
  color intensity -1, not in 0:255

Does anyone know what might be happening here? And more importantly how to fix it?

Thank you so much in advance for any help!
Alex

One of your value in points is negative and equal to -1. RGB have 3 intensity value that are between 0 and 255. I do not know specifically about .ply files and 3D model but it seems these files that can't be read have somehow wrong values...

It may be a good idea to open a bug report in the GH repo as you may have an edge case.