Displaying 1 result from an estimated 1 matches for "vanlangren".
2008 Dec 10
2
read.*: How to read from a URL?
...eps.
This is probably a more general problem than just read.jpeg,
so maybe there is a general idiom for this case, or better-- other
read.* functions could
be encouraged to support URLs.
> library(rimage)
> # local file: OK
> gimage <-
read.jpeg("C:/Documents/milestone/images/vanLangren/google-toledo-rome3.jpg")
>
> gimageloc <-
"http://euclid.psych.yorku.ca/SCS/Gallery/images/Private/Langren/google-toledo-rome3.jpg"
> dest <- paste(tempfile(),'.jpg', sep='')
> download.file(gimageloc, dest, mode="wb")
trying URL
...