[R] Another issue with the Matrix package *under R-devel*
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Aug 30 16:36:06 CEST 2007
I suspect you have not using a re-installed Matrix after re-building R.
I can reproduce the problem using a version of Matrix I installed under
2.5.1, but not with one installed under R-devel this week.
Since R-devel is 'Under development' you may need to reinstall packages
when it changes. This is particularly prevalent with S4-using packages,
as the methods code tends to capture the value of objects as they existed
when a package was installed. In this case log() was changed quite a few
weeks ago, but Matrix needs to be reinstalled after other changes last
weekend.
For the record, the packages I know need to reinstalled under a recent
R-devel are Matrix, distr, kernlab, kinship and matlab (but there may be
others).
And please use the appropriately named R-devel list for questions about
R-devel.
On Thu, 30 Aug 2007, Tony Chiang wrote:
> Hi all,
>
> I am encountering a strange issue with the Matrix package. I have just built
> R-devel from source on my macbook pro, and I wonder if others can reproduce
> this problem. I will give example code to go along:
>
> Starting a fresh R session:
>
> R version 2.6.0 Under development (unstable) (2007-08-30 r42697)
> Copyright (C) 2007 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
>
> ...
>
>> log(2)
> [1] 0.6931472
>> library(Matrix)
> Loading required package: lattice
>> log(2)
> Error in log(2) :
> could not find symbol "base" in environment of the generic function
>
> There seems to be something wrong here and I cannot figure out what it is.
> Am I doing something wrong or is it an issue with Matrix (which is what I
> have narrowed it down to). I think that it might be a namespace collision or
> something, but I am certainly not sure.
>
> Here is my sessionInfo() output:
>> sessionInfo()
> R version 2.6.0 Under development (unstable) (2007-08-30 r42697)
> i386-apple-darwin8.10.1
>
> locale:
> C
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> other attached packages:
> [1] Matrix_0.99875-2 lattice_0.16-3
>
> loaded via a namespace (and not attached):
> [1] grid_2.6.0
>
> Thanks.
>
> Tony
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
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
More information about the R-help
mailing list