[R] How to choose name for package during install (was:Re: problem loading hexbin associated package colorspace)

Karin Lagesen karin.lagesen at medisin.uio.no
Thu Sep 27 15:04:28 CEST 2007


Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:

> Where does this 'hexbin' package come from?  The one I have installed
> (and the only one I found) is from BioC, and that does not depend on
> colorspace:
>
> Description:
>
> Package:       hexbin
> Version:       1.10.0
> Date:          2006-09-28
> Depends:       R (>= 2.0), methods, grid, lattice

I have now discovered that I had an old hexbin version installed, one
that did require colorspace. I am now trying to install the 1.10
version, however, I cannot get it properly loaded since library grabs
the first one in the list. So now for my next question:

During R CMD INSTALL, how do I specify that a package should not just
be named "hexbin" but for instance "hexbin_1.10" so that I can
actually tell library to get the correct one. (this seems to me to be
the way the library help file tells me that I should solve this
problem).

> That said, something is wrong with your installation of colorspace, so
> I suggest you reinstall it.

Reinstalled, does still not load properly:

alanine[15:01]:~/work/rna_comparison/scripts/rpackages> cat colorspace/DESCRIPTION 
Package: colorspace
Version: 0.95
Date: 2006-11-16
Title: Colorspace Manipulation
Author: Ross Ihaka <ihaka at stat.auckland.ac.nz>
Maintainer: Ross Ihaka <ihaka at stat.auckland.ac.nz>
Depends: R (>= 2.0.0), methods
Description: Carries out mapping between assorted color spaces.
License: BSD
URL: http://www.r-project.org
LazyLoad: yes
Packaged: Thu Nov 16 11:47:26 2006; ihaka
Built: R 2.5.1; x86_64-unknown-linux-gnu; 2007-09-27 12:58:16; unix
alanine[15:02]:~/work/rna_comparison/scripts/rpackages> 

> library(colorspace)
Error in loadNamespace(package, c(which.lib.loc, lib.loc), keep.source = keep.source) : 
        in 'colorspace' methods for export not found: [, coords, plot
Error: package/namespace load failed for 'colorspace'
> 


Karin
-- 
Karin Lagesen, PhD student
karin.lagesen at medisin.uio.no
http://folk.uio.no/karinlag



More information about the R-help mailing list