[R] How to use install.packages()

Stat/NCKU cjlu at ibm.stat.ncku.edu.tw
Tue May 1 14:34:35 CEST 2001

Dear R-friends,

As the binary windows version of R being distributed,
what is the correct way to install contributed packages without
using winst.exe as before?

The answer in "R for Windows FAQ" says:
"You can install pre-compiled packages either from CRAN
or from a local .zip file by using install.packages: see its help page."
But the information available in help(install.packages) is limited and
makes me don't know what do next for

> install.packages('display', 'c:/r/rw1022/library',destdir='c:/r')
Error in scan(file = file, what = "", quote = "", sep = "\n", quiet = TRUE)
        cannot open file `C:\WINDOWS\TEMP\file26962'
In addition: Warning message:
wget not found

The display.zip is already downloaded and stored in c:/r directory.
I don't think I need that wget, however, after downloaded wget.zip and
unzipped into wget.exe and wget.html, I don't know what to do with it!
Where (under which directory) shall I put wget.exe? Anything I should
do with it?

My version is
> version
platform i386-pc-mingw32
arch     x86
os       Win32
system   x86, Win32
status   Patched
major    1
minor    2.2
year     2001
month    03
day      22
language R

Thanks very much for your help!

C. Joseph Lu
Associate Professor
Department of Statistics
National Cheng-Kung University
Tainan, Taiwan

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