Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Internet

You can check whether you have access to an Internet connection using the nsl function, checking for a specific hostname:

> nsl("www.r-project.org")
[1] "137.208.57.37"
> if(is.null(suppressWarnings(nsl("www.r-project.org")))) print("Connected?")



Copyright © Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010