|
DATA MINING
Desktop Survival Guide by Graham Williams |
|
|||
Internet |
You can check whether you have access to an Internet connection using
the XnullXR functionsR functions (R function)R functionsR libraries (R library)R functionsR option (R option)R functionsR packages (R package)R functionsDatasets (Dataset)R functionsR functionsnsl 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?")
|