I'm trying to read a pgm file in R. I set my wd to where the image is and then simply try to read it:
setwd("~/3 Diplomado/5 Multivariado/lfwcrop_grey/faces")
library(pixmap)
x <- read.pnm(system.file("Aaron_Guiel_0001.pgm", package="pixmap")[1])
But I get the following error:
Error in if (ch == "#") { : argument is of length zero In addition: Warning message: In file(file, open = "rb") : file("") only supports open = "w+" and open = "w+b": using the former
Not sure what it is. I think it simply doesnt find the image. What am I doing wrong? any hints? Thank you in advanced!
J.