[R] nstall.packages
Uwe Ligges
ligges at statistik.uni-dortmund.de
Thu Feb 8 19:35:19 CET 2001
Han Lai wrote:
>
> Hi!
>
> I am new to R. I want to install "packages" from Package Sources in the
> web. I follow the instruction and use the "install.packages" but no
> luck.
>
> Here is what I did:
>
> > install.packages(gss,"C:/R/rw1021/library", CRAN = options("CRAN"),
> contriburl =
> contrib.url("http://cran.r-project.org"),
> method = "auto", available = NULL,
> destdir = "C:/R/rw1021/library")
> The error message is:
>
> 'lynx' is not recognized as an internal or external command,
> operable program or batch file.
> Error in download.file(url = paste(contriburl, "PACKAGES", sep = "/"),
> :
> No download method found
> In addition: Warning messages:
> 1: wget not found
> 2: cmd execution failed with error code 1 in: shell("lynx -help",
> invisible = TRUE)
>
> Could anybody show mw the correct script?
The use of install.packages() is OK. But you are on windows, and you
don't have installed neither lynx nor wget, I think. From
?install.packages:
Note
wget.exe is available from
http://www.stats.ox.ac.uk/pub/Rtools/wget.zip.
Uwe
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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