This help topic is for R version 1.1. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/read.table.url.html
read.table.url {base}R Documentation

Read Data and Code from a URL

Usage

read.table.url(url, method="auto",...)
scan.url(url, method="auto", ...)
source.url(url, method="auto", ...)
url.show(url, title = url, file = tempfile(),
         delete.file = TRUE, ...)

Arguments

url

The URL to read from

method

File transfer method: see download.file

...

Arguments to pass to read.table, scan, source or file.show \itemfileFile to copy to \itemdelete.fileDelete the file afterwards?

Extensions of read.table, scan, source and file.show to read text files on a remote server. These functions call download.file to create a temporary local file. The file can be downloaded by lynx or wget if these are available on the system. Another option is a direct HTTP socket connection, if the local machine allows this. The same value as the respective file-based functions.

read.table, scan, source, make.socket, read.socket, file.show,download.file

## Not run: read.table.url("http://lib.stat.cmu.edu/jcgs/tu",skip=4,header=T) ## Not run: url.show("http://lib.stat.cmu.edu/datasets/csb/ch11b.txt") ## Not run: beaver<-read.table.url("http://lib.stat.cmu.edu/datasets/csb/ch11b.dat", col.names=c("obsnum","day","time","temperature","activity"),row.names=1) ## End(Not run)

# the next two examples will only work if socket connections to # statlib are allowed from your site. ## Not run: url.show("http://lib.stat.cmu.edu/datasets/csb/ch3a.txt", method="socket") ## End(Not run) ## Not run: ozone<-read.table.url("http://lib.stat.cmu.edu/datasets/csb/ch3a.dat", col.names=c("date","day.cts","day.passive","night.cts","night.passive"), na.strings=".", method="socket") ## End(Not run) file misc


[Package base version 1.1 ]