Re: [R] Jpg files in R

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Mon, 25 Aug 2008 17:15:26 -0300

Right Barry, I forget.

Thanks

On Mon, Aug 25, 2008 at 4:51 PM, Barry Rowlingson <b.rowlingson_at_lancaster.ac.uk> wrote:
> 2008/8/25 Henrique Dallazuanna <wwwhsd@gmail.com>:
>> Is there the rimage package:
>>
>>
>> if(!require(rimage))install.packages("rimage")
>> x <- read.jpeg(system.file("data", "cat.jpg", package="rimage"))
>
> Nice, but if the require() fails and the package installs via
> install.packages, you still have to do the require() (or 'library()'),
> so you need something like:
>
> if(!require(rimage)){ install.packages("rimage") ; require(rimage) }
>
> maybe we need a requireOrGet() function that goes and gets it from
> CRAN if it can't find it :)
>
> Barry
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
R-help_at_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.
Received on Mon 25 Aug 2008 - 20:22:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 25 Aug 2008 - 21:34:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive