Hi Ya'll I'm trying to install the zoo library... I've downloaded about 5 or 6 of their releases (inc. the latest one), all of them giving me the same syntax error when trying to install... Anyone seen this problem before? its not the "lib" argument that is the problem (ive been installing other packages using this exact format with no problem... just zoo is the problem.> install.packages("zoo_1.5-8.tar.gz", repos = NULL );Warning in install.packages("zoo_1.5-8.tar.gz", repos = NULL) : argument 'lib' is missing: using /usr/local/lib/R/site-library * Installing *source* package 'zoo' ... ** R ** inst ** preparing package for lazy loading Error in parse(file, n, text, prompt) : syntax error at 2570: head.zoo <- function(x, n = 6, ...) { 2571: stopifnot(length(n) == 1L Error: unable to load R code in package 'zoo' Execution halted ERROR: lazy loading failed for package 'zoo' ** Removing '/usr/local/lib/R/site-library/zoo' Warning message: installation of package 'zoo_1.5-8.tar.gz' had non-zero exit status in: install.packages("zoo_1.5-8.tar.gz", repos = NULL) -- View this message in context: http://r.789695.n4.nabble.com/Installing-the-Zoo-Library-tp2303604p2303604.html Sent from the R help mailing list archive at Nabble.com.
On Tue, Jul 27, 2010 at 10:02 AM, Rnoobie <jc at stellaconcepts.com> wrote:> > Hi Ya'll > > I'm trying to install the zoo library... I've downloaded about 5 or 6 of > their releases (inc. the latest one), all of them giving me the same syntax > error when trying to install... > > Anyone seen this problem before? its not the "lib" argument that is the > problem (ive been installing other packages using this exact format with no > problem... just zoo is the problem. > > > >> install.packages("zoo_1.5-8.tar.gz", repos = NULL );That's about a year old and nowhere near the latest release. This: install.packages("zoo") works for me from within "R version 2.11.1 Patched (2010-05-31 r52167)" on Windows Vista and it works this way works too: C:\tmp2>wget http://cran.r-project.org/src/contrib/zoo_1.6-4.tar.gz --10:29:03-- http://cran.r-project.org/src/contrib/zoo_1.6-4.tar.gz => `zoo_1.6-4.tar.gz.1' Connecting to cran.r-project.org:80... connected! HTTP request sent, awaiting response... 200 OK Length: 892,174 [application/x-gzip] 0K .......... .......... .......... .......... .......... 5% @ 53.94 KB/s 50K .......... .......... .......... .......... .......... 11% @ 235.85 KB/s 100K .......... .......... .......... .......... .......... 17% @ 197.63 KB/s 150K .......... .......... .......... .......... .......... 22% @ 520.83 KB/s 200K .......... .......... .......... .......... .......... 28% @ 337.84 KB/s 250K .......... .......... .......... .......... .......... 34% @ 367.65 KB/s 300K .......... .......... .......... .......... .......... 40% @ 520.83 KB/s 350K .......... .......... .......... .......... .......... 45% @ 531.91 KB/s 400K .......... .......... .......... .......... .......... 51% @ 438.60 KB/s 450K .......... .......... .......... .......... .......... 57% @ 520.83 KB/s 500K .......... .......... .......... .......... .......... 63% @ 520.83 KB/s 550K .......... .......... .......... .......... .......... 68% @ 515.46 KB/s 600K .......... .......... .......... .......... .......... 74% @ 537.63 KB/s 650K .......... .......... .......... .......... .......... 80% @ 520.83 KB/s 700K .......... .......... .......... .......... .......... 86% @ 537.63 KB/s 750K .......... .......... .......... .......... .......... 91% @ 515.46 KB/s 800K .......... .......... .......... .......... .......... 97% @ 531.91 KB/s 850K .......... .......... . 100% @ 531.59 KB/s 10:29:06 (302.63 KB/s) - `zoo_1.6-4.tar.gz.1' saved [892174/892174] C:\tmp2>Rcmd INSTALL zoo_1.6-4.tar.gz * installing to library 'C:\Users\Gabor\Documents/R/win-library/2.11' * installing *source* package 'zoo' ... ** R ** demo ** inst ** preparing package for lazy loading ** help *** installing help indices ** building package indices ... ** testing if installed package can be loaded * DONE (zoo) C:\tmp2>
It's a "package", not a "library" ... I've changed the subject line where you had "library". A library in R is a directory in which packages are stored, and which you see from typing 'library()' or a file with a collection of *compiled* C, Fortran, C++, etc functions (sometimes called a "DLL", notably in Windows) which in R is loaded by dyn.load() or library.dynam() -- typically implicitly when a package is loaded containing compiled code. As you declare yourself an "R newbie", one of the early steps will be to use precise language. Hence, do "watch your language" :-) Martin Maechler, ETH Zurich (yes, I'm vacationing and having some extra time .. :-)