[R-sig-Debian] Ubuntu Lucid, R 2.14.2, and ggplot2

Dirk Eddelbuettel edd at debian.org
Thu Mar 22 20:15:20 CET 2012


On 22 March 2012 at 14:02, Scott Smith wrote:
| I've just updated to the latest R (2.14.2) on my Ubuntu Lucid box, and now the ggplot2 installed as a .deb package fails to work.
| 
| $ R -e 'library(ggplot2)'
| Error in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : 
|   package ‘proto’ does not have a NAMESPACE and should be re-installed
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You would need to uninstall r-cran-proto, which seems outdated. But you
can't, as r-cran-ggplot2 depends on it.

The /usr/local/lib/R setup comes to the rescue:  just do a manual

   install.packages("proto")   # or 'R CMD INSTALL proto_*.tar.gz

and you will have a newer, better one /ahead/ of the broken one in your
.libPath.

Dirk



| Calls: library -> .getRequiredPackages2 -> library
| Execution halted
| 
| Here is what I did to ensure the packages were up-to-date:
| 
| $ sudo apt-get update
| $ sudo apt-get install r-base r-base-core r-cran-ggplot2 r-cran-proto
| 
| Here is what my sources list and dpkg list looks like:
| 
| $ cat /etc/apt/sources.list.d/r-cran.list 
| deb http://cran.wustl.edu/bin/linux/ubuntu lucid/
| 
| $ dpkg -l r-base r-base-core r-cran-ggplot2 r-cran-proto
| | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
| |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
| ||/ Name                      Version                   Description
| +++-=========================-=========================-==================================================================
| ii  r-base                    2.14.2-3lucid0            GNU R statistical computation and graphics system
| ii  r-base-core               2.14.2-3lucid0            GNU R core of statistical computation and graphics system
| ii  r-cran-ggplot2            0.8.9-1cran1              GNU R package "An implementation of the Grammar of
| ii  r-cran-proto              0.3-9-1cran1              GNU R package "Prototype object-based programming"
| 
| _______________________________________________
| R-SIG-Debian mailing list
| R-SIG-Debian at r-project.org
| https://stat.ethz.ch/mailman/listinfo/r-sig-debian

-- 
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx



More information about the R-SIG-Debian mailing list