[R-sig-Debian] errors from update.packages()

Michael Dewey info at aghmed.fsnet.co.uk
Mon Jul 12 19:38:57 CEST 2010


At 16:15 12/07/2010, Michael Friendly wrote:

>Running R.2.11.1, debian linux, I tried to update.packages as root 
>within R and get errors
>for cairoDevice and latticeExtra I don't know how to fix.
>For cairoDevice, I don't know what gtk+2.0 is;
>for latticeExtra, I'm surprised that R cannot find RColorBrewer 
>built for R 2.10+

Michael, I suggest you reinstall RColorBrewer and see if that helps. 
I suspect the version you have is the current version but built under 
an earlier version of R.


>What to do?
>
>
> > old.packages()
>             Package        LibPath                   Installed 
> Built cairoDevice  "cairoDevice"  "/usr/lib/R/site-library" "2.8"     "2.7.0"
>latticeExtra "latticeExtra" "/usr/lib/R/site-library" "0.4-1"   "2.7.0"
>             ReposVer Repository
>cairoDevice  "2.13"   "http://probability.ca/cran/src/contrib"
>latticeExtra "0.6-11" "http://probability.ca/cran/src/contrib"
> > update.packages()
>cairoDevice :
>Version 2.8 installed in /usr/lib/R/site-library
>Version 2.13 available at http://probability.ca/cran
>Update (y/N/c)?  y
>latticeExtra :
>Version 0.4-1 installed in /usr/lib/R/site-library
>Version 0.6-11 available at http://probability.ca/cran
>Update (y/N/c)?  y
>trying URL 'http://probability.ca/cran/src/contrib/cairoDevice_2.13.tar.gz'
>Content type 'application/x-gzip' length 37983 bytes (37 Kb)
>opened URL
>==================================================
>downloaded 37 Kb
>
>trying URL 'http://probability.ca/cran/src/contrib/latticeExtra_0.6-11.tar.gz'
>Content type 'application/x-gzip' length 1873863 bytes (1.8 Mb)
>opened URL
>==================================================
>downloaded 1.8 Mb
>
>* installing *source* package 'cairoDevice' ...
>checking for pkg-config... pkg-config
>ERROR: gtk+2.0 not found by pkg-config.
>ERROR: configuration failed for package 'cairoDevice'
>* removing '/usr/lib/R/site-library/cairoDevice'
>* restoring previous '/usr/lib/R/site-library/cairoDevice'
>* installing *source* package 'latticeExtra' ...
>** R
>** data
>** inst
>** preparing package for lazy loading
>Error : package 'RColorBrewer' was built before R 2.10.0: please re-install it
>ERROR: lazy loading failed for package 'latticeExtra'
>* removing '/usr/lib/R/site-library/latticeExtra'
>* restoring previous '/usr/lib/R/site-library/latticeExtra'
>
>The downloaded packages are in
>    '/tmp/Rtmplccsxl/downloaded_packages'
>Warning messages:
>1: In install.packages(update[instlib == l, "Package"], l, 
>contriburl = contriburl,  :
>  installation of package 'cairoDevice' had non-zero exit status
>2: In install.packages(update[instlib == l, "Package"], l, 
>contriburl = contriburl,  :
>  installation of package 'latticeExtra' had non-zero exit status
> >
>
>
>--
>Michael Friendly     Email: friendly at yorku.ca Professor, Psychology Dept.
>York University      Voice: 416 736-5115 x66249 Fax: 416 736-5814
>4700 Keele Street    http://datavis.ca
>Toronto, ONT  M3J 1P3 CANADA
>
>_______________________________________________
>R-SIG-Debian mailing list
>R-SIG-Debian at r-project.org
>https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Michael Dewey
http://www.aghmed.fsnet.co.uk



More information about the R-SIG-Debian mailing list