Learn R Programming

icd9 (version 0.5)

read.zip.url: read file from zip at URL

Description

downloads zip file, and opens named file filename, or the single file in zip if filename is not specified. FUN is a function, with additional arguments to FUN given by ....

Usage

read.zip.url(url, filename = NULL, FUN = readLines, ...)

Arguments

url
character vector of length one containing URL of zip file.
filename
character vector of length one containing name of file to extract from zip. If not specified, and the zip contains a single file, then this single file will be used.
FUN
function used to process the file in the zip, defaults to readLines. The first argument to FUN will be the path of the extracted filename
...
further arguments to FUN