File: getZip.Rd

package info (click to toggle)
hmisc 3.14-5-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,792 kB
  • ctags: 701
  • sloc: asm: 23,440; fortran: 600; ansic: 375; xml: 160; makefile: 1
file content (35 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
\name{getZip}
\alias{getZip}
\title{Open a Zip File From a URL.}
\description{
  Allows downloading and reading of a zip file containing one file
}
\usage{
getZip(url, password=NULL)
}
\arguments{
  \item{url}{either a path to a local file or a valid URL.}
  \item{password}{required to decode password-protected zip files}
}
\value{
  Returns a file O/I pipe.
}
\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
}
\seealso{
  \code{\link{pipe}}
}
\examples{
\dontrun{
read.csv(getZip('http://biostat.mc.vanderbilt.edu/twiki/pub/Sandbox/WebHome/z.zip'))
## Password is 'foo'
}
}
\author{Frank E. Harrell}
\keyword{file}
\keyword{IO}
\concept{compressed file}