getZip: Open a Zip File From a URL.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/Misc.s

Description

Allows downloading and reading of a zip file containing one file

Usage

1
getZip(url, password=NULL)

Arguments

url

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

password

required to decode password-protected zip files

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

Value

Returns a file O/I pipe.

Author(s)

Frank E. Harrell

See Also

pipe

Examples

1
2
3
4
5
## Not run: 
read.csv(getZip('http://biostat.mc.vanderbilt.edu/twiki/pub/Sandbox/WebHome/z.zip'))
## Password is 'foo'

## End(Not run)

harrelfe/Hmisc documentation built on Oct. 3, 2019, 9:34 p.m.