| read.table.url {base} | R Documentation |
Extensions of read.table, scan,
source
and file.show to read text files on a remote
server.
read.table.url(url, method = "auto",...)
scan.url(url, file = tempfile(), method = "auto", ...)
source.url(url, file = tempfile(), method = "auto", ...)
url.show(url, title = url, file = tempfile(),
delete.file = TRUE, method = "auto", ...)
url |
The URL to read from |
method |
File transfer method: see download.file |
... |
Arguments to pass to read.table,
scan, source or
file.show. |
file |
File to copy to. |
delete.file |
Delete the file afterwards? |
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