[R] problem with Matrix package

Andrew Gelman gelman at stat.columbia.edu
Mon Feb 12 00:34:09 CET 2007


Doug
Reinstalling R did the trick.  Thanks.
Andrew


Douglas Bates wrote:
> On 2/11/07, Andrew Gelman <gelman at stat.columbia.edu> wrote:
>> Doug
>> Yes, it's R 2.4.1.  I'm trying to keep up with Matrix for various
>> reasons, most immediately that our "arm" package requires Matrix.
>> Andrew
>
> The source package for version 0.9975-10 Matrix has just been moved
> onto CRAN.  Binary versions should hit the mirrors in a day or two.  I
> suggest you try with that version.
>
> In the meantime try
>
> str(get("Logic", "package:methods"))
>
> I get
>
>> str(get("Logic", "package:methods"))
> Formal class 'groupGenericFunction' [package "methods"] with 9 slots
>  ..@ .Data       :function (e1, e2)
>  ..@ groupMembers:List of 2
>  .. ..$ : chr "&"
>  .. ..$ : chr "|"
>  ..@ generic     : atomic [1:1] Logic
>  .. ..- attr(*, "package")= chr "base"
>  ..@ package     : chr "base"
>  ..@ group       :List of 1
>  .. ..$ : chr "Ops"
>  ..@ valueClass  : chr(0)
>  ..@ signature   : chr [1:2] "e1" "e2"
>  ..@ default     :Formal class 'MethodsList' [package "methods"] with 
> 3 slots
>  .. .. ..@ methods   : list()
>  .. .. ..@ argument  : symbol e1
>  .. .. ..@ allMethods: list()
>  ..@ skeleton    : language function (e1, e2)  stop("invalid call in
> method dispatch to \"Logic\" (no default method)",  ...
>
> The Windows binary version of the Matrix package that you installed is
> several weeks old.  If it didn't install on a stock version of R-2.4.1
> I imagine we would have heard about it before now.  I think you may
> need to check if somehow you have an old version of the methods
> package on your search path or just install a fresh copy of R-2.4.1
>
>
>>
>> Douglas Bates wrote:
>> > On 2/11/07, Andrew Gelman <gelman at stat.columbia.edu> wrote:
>> >> I decided to update my packages and then had a problem with 
>> loading the
>> >> Matrix package
>> >> 
>> http://cran.at.r-project.org/bin/windows/contrib/2.4/Matrix_0.9975-9.zip
>> >> This is what happened when I tried to load it in:
>> >>
>> >>  > library("Matrix")
>> >> Error in importIntoEnv(impenv, impnames, ns, impvars) :
>> >>         object 'Logic' is not exported by 'namespace:methods'
>> >> Error: package/namespace load failed for 'Matrix'
>> >>  >
>> >>
>> >> I hadn't had this probldem before; any thoughts?
>> >>
>> >> Andrew
>> >
>> > And the version of R that you are using is?
>> >
>> > Version 0.9975-9 of the Matrix package depends on R >= 2.4.1 for
>> > exactly this reason.
>>
>> -- 
>> Andrew Gelman
>> Professor, Department of Statistics
>> Professor, Department of Political Science
>> Columbia University, New York
>> gelman at stat.columbia.edu
>> www.stat.columbia.edu/~gelman
>>
>> Office hours spring 2006:
>>   to be announced
>>
>> Statistics department office:
>>   Social Work Bldg (Amsterdam Ave at 122 St), Room 1016
>>   212-851-2142
>> Political Science department office:
>>   International Affairs Bldg (Amsterdam Ave at 118 St), Room 731
>>   212-854-7075
>>
>> Mailing address:
>>   1255 Amsterdam Ave, Room 1016
>>   Columbia University
>>   New York, NY 10027-5904
>>   212-851-2142
>>   (fax) 212-851-2164
>>
>>

-- 
Andrew Gelman
Professor, Department of Statistics
Professor, Department of Political Science
Columbia University, New York
gelman at stat.columbia.edu
www.stat.columbia.edu/~gelman

Office hours spring 2006:
  to be announced

Statistics department office:
  Social Work Bldg (Amsterdam Ave at 122 St), Room 1016
  212-851-2142
Political Science department office:
  International Affairs Bldg (Amsterdam Ave at 118 St), Room 731
  212-854-7075

Mailing address:
  1255 Amsterdam Ave, Room 1016
  Columbia University
  New York, NY 10027-5904
  212-851-2142
  (fax) 212-851-2164



More information about the R-help mailing list