I installed jpeg package and tried to use

 kim<-readJPEG("kim.jpeg") to read in a jpeg file, but R gave me an error:
Error in readJPEG("kim.jpeg") : unable to open kim.jpeg

I already put "kim.jpeg" in Rstudio's default working directory: "E:\home
work\Rstudio". So I don't think it's a problem caused by omitting the file's
path. But I tried with the full path version just in case and still got the
"unable to open" error:

kim<-readJPEG("E:\\ home work\\Rstudio\\kim.jpeg")
Error in readJPEG("E:\\ home work\\Rstudio\\kim.jpeg") :
  unable to open E:\ home work\Rstudio\kim.jpeg

So now I really don't know what is wrong.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to