Learn R Programming

Hmisc (version 5.1-3)

getZip: Open a Zip File From a URL

Description

Allows downloading and reading of a zip file containing one file

Usage

getZip(url, password=NULL)

Value

Returns a file O/I pipe.

Arguments

url

either a path to a local file or a valid URL.

password

required to decode password-protected zip files

Author

Frank E. Harrell

Details

Allows downloading and reading of zip file containing one file. The file may be password protected. If a password is needed then one will be requested unless given.

Note: to make password-protected zip file z.zip, do zip -e z myfile

See Also

Examples

Run this code
if (FALSE) {
read.csv(getZip('http://test.com/z.zip'))
}

Run the code above in your browser using DataLab