[R] Test internet presence
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Sep 11 15:26:05 CEST 2006
On Mon, 11 Sep 2006, Ted.Harding at nessie.mcc.ac.uk wrote:
> On 11-Sep-06 Gregor Gorjanc wrote:
> > It seems that 'internal' method was used (I use R 2.3.1 under
> > Linux) as indicated in help page of download.file. I could
> > use wget or lynx methods, but these two must be available,
> > so this is not really portable. Are there any other options
> > for testing internet access? I am thinking that this might be
> > more relevant for R-devel. I will wait a bit
> > before moving there.
Check out tests/internet.R. nsl() checks if you can resolve host names,
which has worked well enough there.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list