My goal is to download an image from an URL and then display it in R.
I got an URL and figured out how to download it. But the downloaded file can\'t be previewed be
this could work too here
library("jpeg") library("png") x <- "http://upload.wikimedia.org/wikipedia/commons/5/5d/AaronEckhart10TIFF.jpg" image_name<- readJPEG(getURLContent(x)) # for jpg image_name<- readPNG(getURLContent(x)) # for png