Hi all,
When installing ggplot2 on with install.packages("ggplot2", dep = T),
the colorspace dependency doesn't get installed (see below for
transcript from R session). The relevant lines from my description
file are:
Depends: R (>= 2.4), grid, reshape (>= 0.8.0), proto, splines, MASS,
RColorBrewer, colorspace
Suggests: quantreg, Hmisc, mapproj, maps
Have I done something wrong? Or is this a bug in the installation of
dependent packages?
Thanks,
Hadley
> install.packages("ggplot2", dep = T)
also installing the dependencies 'XML', 'RBGL', 'graph',
'chron',
'acepack', 'proto', 'Hmisc'
trying URL '
http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/XML_1.9-0.tgz'
Content type 'application/x-gzip' length 1108754 bytes
opened URL
=================================================downloaded 1082Kb
trying URL
'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/RBGL_1.12.0.tgz
'
Content type 'application/x-gzip' length 4577430 bytes
opened URL
=================================================downloaded 4470Kb
trying URL '
http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/graph_1.14.2.tgz'
Content type 'application/x-gzip' length 494951 bytes
opened URL
=================================================downloaded 483Kb
trying URL
'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/chron_2.3-14.tgz'
Content type 'application/x-gzip' length 72595 bytes
opened URL
=================================================downloaded 70Kb
trying URL
'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/acepack_1.3-2.2.tgz
'
Content type 'application/x-gzip' length 67871 bytes
opened URL
=================================================downloaded 66Kb
trying URL '
http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/proto_0.3-7.tgz'
Content type 'application/x-gzip' length 958493 bytes
opened URL
=================================================downloaded 936Kb
trying URL
'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/Hmisc_3.4-2.tgz'
Content type 'application/x-gzip' length 1475177 bytes
opened URL
=================================================downloaded 1440Kb
trying URL
'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/ggplot2_0.5.4.tgz
'
Content type 'application/x-gzip' length 1928720 bytes
opened URL
=================================================downloaded 1883Kb
The downloaded packages are in
/tmp/RtmpWRuZcd/downloaded_packages
Warning message:
dependency 'Rgraphviz' is not available> library(ggplot2)
Loading required package: proto
Loading required package: splines
Loading required package: MASS
Loading required package: colorspace
Error: package 'colorspace' could not be loaded
In addition: Warning message:
there is no package called 'colorspace' in: library(pkg,
character.only = TRUE, logical = TRUE, lib.loc = lib.loc)
--
http://had.co.nz/
On Sun, 19 Aug 2007, hadley wickham wrote:> Hi all, > > When installing ggplot2 on with install.packages("ggplot2", dep = T), > the colorspace dependency doesn't get installed (see below for > transcript from R session). The relevant lines from my description > file are: > > Depends: R (>= 2.4), grid, reshape (>= 0.8.0), proto, splines, MASS, > RColorBrewer, colorspace > Suggests: quantreg, Hmisc, mapproj, maps > > Have I done something wrong? Or is this a bug in the installation of > dependent packages?You need to start continuation lines with whitespace, but possibly your mailer wrapped this. (For readability I would wrap it in the DESCRIPTION file.) I tried in a vanilla session on Linux and colorspace was installed. Was this a vanilla session? Does it work with type="source"? It would be helpful if you could debug this as probably no one else can: the code has been in use for a long time without any reported problems.> > Thanks, > > Hadley > > >> install.packages("ggplot2", dep = T) > also installing the dependencies 'XML', 'RBGL', 'graph', 'chron', > 'acepack', 'proto', 'Hmisc' > > trying URL ' http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/XML_1.9-0.tgz' > Content type 'application/x-gzip' length 1108754 bytes > opened URL > =================================================> downloaded 1082Kb > > trying URL 'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/RBGL_1.12.0.tgz > ' > Content type 'application/x-gzip' length 4577430 bytes > opened URL > =================================================> downloaded 4470Kb > > trying URL ' http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/graph_1.14.2.tgz' > Content type 'application/x-gzip' length 494951 bytes > opened URL > =================================================> downloaded 483Kb > > trying URL 'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/chron_2.3-14.tgz' > Content type 'application/x-gzip' length 72595 bytes > opened URL > =================================================> downloaded 70Kb > > trying URL 'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/acepack_1.3-2.2.tgz > ' > Content type 'application/x-gzip' length 67871 bytes > opened URL > =================================================> downloaded 66Kb > > trying URL ' http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/proto_0.3-7.tgz' > Content type 'application/x-gzip' length 958493 bytes > opened URL > =================================================> downloaded 936Kb > > trying URL 'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/Hmisc_3.4-2.tgz' > Content type 'application/x-gzip' length 1475177 bytes > opened URL > =================================================> downloaded 1440Kb > > trying URL 'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/ggplot2_0.5.4.tgz > ' > Content type 'application/x-gzip' length 1928720 bytes > opened URL > =================================================> downloaded 1883Kb > > > The downloaded packages are in > /tmp/RtmpWRuZcd/downloaded_packages > Warning message: > dependency 'Rgraphviz' is not available >> library(ggplot2) > Loading required package: proto > Loading required package: splines > Loading required package: MASS > Loading required package: colorspace > Error: package 'colorspace' could not be loaded > In addition: Warning message: > there is no package called 'colorspace' in: library(pkg, > character.only = TRUE, logical = TRUE, lib.loc = lib.loc) > > > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
On 19/08/2007 2:00 PM, hadley wickham wrote:> Hi all, > > When installing ggplot2 on with install.packages("ggplot2", dep = T), > the colorspace dependency doesn't get installed (see below for > transcript from R session). The relevant lines from my description > file are: > > Depends: R (>= 2.4), grid, reshape (>= 0.8.0), proto, splines, MASS, > RColorBrewer, colorspace > Suggests: quantreg, Hmisc, mapproj, maps > > Have I done something wrong? Or is this a bug in the installation of > dependent packages?I see the same problem in MacOSX, but not in Windows. If I try it with none of the dependencies installed, only reshape and proto are added but there's a warning about grid, splines and MASS, so I'd guess this is a bug related to the fact that RColorBrewer and colorspace are on the second line, and there's another bug related to the fact that the others are recommended packages. Duncan Murdoch> > Thanks, > > Hadley > > >> install.packages("ggplot2", dep = T) > also installing the dependencies 'XML', 'RBGL', 'graph', 'chron', > 'acepack', 'proto', 'Hmisc' > > trying URL ' http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/XML_1.9-0.tgz' > Content type 'application/x-gzip' length 1108754 bytes > opened URL > =================================================> downloaded 1082Kb > > trying URL 'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/RBGL_1.12.0.tgz > ' > Content type 'application/x-gzip' length 4577430 bytes > opened URL > =================================================> downloaded 4470Kb > > trying URL ' http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/graph_1.14.2.tgz' > Content type 'application/x-gzip' length 494951 bytes > opened URL > =================================================> downloaded 483Kb > > trying URL 'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/chron_2.3-14.tgz' > Content type 'application/x-gzip' length 72595 bytes > opened URL > =================================================> downloaded 70Kb > > trying URL 'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/acepack_1.3-2.2.tgz > ' > Content type 'application/x-gzip' length 67871 bytes > opened URL > =================================================> downloaded 66Kb > > trying URL ' http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/proto_0.3-7.tgz' > Content type 'application/x-gzip' length 958493 bytes > opened URL > =================================================> downloaded 936Kb > > trying URL 'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/Hmisc_3.4-2.tgz' > Content type 'application/x-gzip' length 1475177 bytes > opened URL > =================================================> downloaded 1440Kb > > trying URL 'http://cran.uk.r-project.org/bin/macosx/universal/contrib/2.5/ggplot2_0.5.4.tgz > ' > Content type 'application/x-gzip' length 1928720 bytes > opened URL > =================================================> downloaded 1883Kb > > > The downloaded packages are in > /tmp/RtmpWRuZcd/downloaded_packages > Warning message: > dependency 'Rgraphviz' is not available >> library(ggplot2) > Loading required package: proto > Loading required package: splines > Loading required package: MASS > Loading required package: colorspace > Error: package 'colorspace' could not be loaded > In addition: Warning message: > there is no package called 'colorspace' in: library(pkg, > character.only = TRUE, logical = TRUE, lib.loc = lib.loc) > > >