[R] Problems with reshape2 on Mac

Hadley Wickham hadley at rice.edu
Mon Sep 13 21:01:27 CEST 2010


Hi Uwe,

The problem is most likely because the original poster doesn't have
the latest version of plyr.  I correctly declare this dependency in
the DESCRIPTION
(http://cran.r-project.org/web/packages/reshape2/index.html), but
unfortunately R doesn't seem to use this information at run time,
generally creating many error reports of this nature.

Hadley

2010/9/13 Uwe Ligges <ligges at statistik.tu-dortmund.de>:
> Is this a recent version of R? If so, please report to the maintainer.
> Otherwise, please also report that it does not work with your version of R
> so that the maintainer can add a version dependency.
>
> Best,
> Uwe Ligges
>
> On 13.09.2010 17:42, Paul Metzner wrote:
>>
>> Hi!
>>
>> I updated to reshape2 yesterday and tried to make it work. Unfortunately,
>> it mainly throws error messages at me (good thing it's reshape2 1.0 and not
>> reshape 2.0). The most recent is:
>>
>> Error in match.fun(FUN) : object 'id' not found
>>
>> When I manually create an object 'id', it says:
>>
>> Error in get(as.character(FUN), mode = "function", envir = envir) :
>>   object 'id' of mode 'function' was not found
>>
>> I assume that dcast is looking for a function by the name 'id' which is
>> not present. I tried both Rdaemon within TextMate and R in the Terminal. I
>> also tried both my own code and the airquality example. reshape is still
>> working flawlessly. I also needed to load plyr manually to make another
>> error message go away, that asked for 'as.quoted'.
>>
>> Best,
>> Paul
>>
>> ---
>> Paul Metzner
>>
>> Humboldt-Universität zu Berlin
>> Philosophische Fakultät II
>> Institut für deutsche Sprache und Linguistik
>>
>> Post: Unter den Linden 6 | 10099 Berlin | Deutschland
>> Besuch: Dorotheenstraße 24 | 10117 Berlin | Deutschland
>>
>> +49-(0)30-2093-9726
>> paul.metzner at rz.hu-berlin.de
>> http://amor.rz.hu-berlin.de/~metznerp/
>>
>> ______________________________________________
>> R-help at r-project.org 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.
>
> ______________________________________________
> R-help at r-project.org 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.
>



-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



More information about the R-help mailing list