[R] Installing Packages

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Oct 7 16:25:48 CEST 2001

On Sun, 7 Oct 2001, syed gillani wrote:

> Hello All,
> I have all the packages as .zip files in a folder, say zipfolder.
> Does "pkunzip -d c:\zipfolder\*.zip", while I am in the library folder of R home, install the packages just like installing each package individually from the RGui Packages menu?

No (see 3) below).  There are lots of things called pk(un)zip. I have
little idea which you mean, as pkunzip is not widely available these days
and the last version I saw was a DOS program from 1993.  Later versions
have different names, e.g. PKZIP 4.5 for Windows (or Unix or OpenVMS).
There are much more widely used commercial offerings (ZipMagic, WinZip,
ZipIt, ...).

No unzip program I have access to does multiple unzips like that. I also
suspect that pkunzip may not unzip the packages from CRAN: some versions
definitely do not.  However, using pkunzip seems the hard way out as

1) You can select all the packages at once in RGui's list.

2) You can also use install.packages directly, as in


3) After installing packages you need to run some updates: see the rw-FAQ.
1) and 2) do that automatically.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list