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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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? Thank you very much cheers! Han -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Either install the pre-compiled packages for Windows (which can be handled by rwinst.exe), or if you insist on installing from source, follow the instructions in README.rw. Andy> -----Original Message----- > From: Han Lai [mailto:hlai at whsun1.wh.whoi.edu] > Sent: Thursday, February 08, 2001 3:53 PM > To: r-help at stat.math.ethz.ch > Subject: [R] nstall.packages > > > 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? > > Thank you very much > > cheers! > Han > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > -.-.-.-.-.-.-.-.- > 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 > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. > _._._._._._._._._ >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._