[R] Test internet presence

Gregor Gorjanc gregor.gorjanc at bfro.uni-lj.si
Mon Sep 11 12:33:22 CEST 2006


Gregor Gorjanc wrote:
> Hello useRs!
> 
> I have a small package and I need internet access for examples. Of
> course it works fine when I have internet access, but not otherwise. I
> remember I saw a way to test availability of internet access, but I can
> not find it now in archives. Can anyone here help me?
> 
> David Barron wrote:
>> I means non-zero, not non-negative.
>>
> ...
> 
> Thanks. download.file() is fine!
> 

Thinking a bit more, download.file() is not really general as I need to
specify an url and it might happen that I have internet connection, but
server that provides url is down. I am to picky on this?

-- 
Lep pozdrav / With regards,
    Gregor Gorjanc

----------------------------------------------------------------------
University of Ljubljana     PhD student
Biotechnical Faculty
Zootechnical Department     URI: http://www.bfro.uni-lj.si/MR/ggorjan
Groblje 3                   mail: gregor.gorjanc <at> bfro.uni-lj.si

SI-1230 Domzale             tel: +386 (0)1 72 17 861
Slovenia, Europe            fax: +386 (0)1 72 17 888

----------------------------------------------------------------------
"One must learn by doing the thing; for though you think you know it,
 you have no certainty until you try." Sophocles ~ 450 B.C.



More information about the R-help mailing list