You can use jpeg package. The code should be pretty straightforward:
require(jpeg) img <- readJPEG("myimage.jpg") dim(img) [1] 700 700 3
The same author (Simon Urbanek) also provided the png and tiff package, which has functions with similar syntax ( readPNG and readTIFF )
source share