Rev 84392 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
## These are tests that require a working Internet connection.## We attempt to test for that on Unix.if(.Platform$OS.type == "unix" &&is.null(nsl("cran.r-project.org"))) q()## As virtually all http sites redirect to https:, we only test the latter# test do_download (and "record" #{packages}):ap <- available.packages(contrib.url("https://cran.r-project.org"))## IGNORE_RDIFF_BEGINnrow(ap)## IGNORE_RDIFF_END# test url connectionszz <- url("https://cran.r-project.org/")readLines(zz)close(zz)# and via read.table, using an r-project.org siteread.table("https://developer.R-project.org/inet-tests/ch11b.dat")showConnections(all = TRUE)