Re: [R] Test internet presence

From: Gregor Gorjanc <>
Date: Mon 11 Sep 2006 - 10:33:22 GMT

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:
Groblje 3                   mail: gregor.gorjanc <at>

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.

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon Sep 11 20:41:30 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 11 Sep 2006 - 12:30:04 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.