[ESS] Problem plotting tree (party pkg)

Martin Maechler maechler at stat.math.ethz.ch
Wed Jan 11 09:53:10 CET 2006


>>>>> "Christian" == Christian Montel <christian.montel at eligo.de>
>>>>>     on Wed, 11 Jan 2006 07:58:40 +0100 writes:

    Christian> Hi,
    Christian> the problem persists in other applications with slightly different error 
    Christian> messages:

    Christian> ## following snippet was sent to R via C-c C-r in Emacs Buffer:

    >> require(party)
    >> metamTree <- ctree(crit~.,data=metam)
    >> plot(metamTree)
    Christian> ## Message
    Christian> Error in function ()  : recursive default argument reference

    Christian> ## that error message comes when i send the whole buffer to R via C-c C-b:
    >> plot(metamTree)
    Christian> Error in getNamespace(c("grid", "2.2.0")) :
    Christian> recursive default argument reference

    Christian> Any clue what i can do?

I still can hardly beleave that this is a problem of ESS /
Emacs.
You say it works fine in Rterm. 
Are you absolutely sure this runs the same version of R, the
same packages, etc etc

Type sessionInfo() in both and compare the outputs carefully.
I still have strong feeling that this is a problem of your R setup, and
not of ESS {but I can be wrong, of course!}.

Martin


    Christian> A.J. Rossini wrote:
    >> Please reply to the list -- it'll be another 10 hours before I can
    >> take a better look!  (I've cc'd the list for this information).
    >> 
    >> On 1/10/06, Christian Montel <christian.montel at eligo.de> wrote:
    >> 
    >>> Hi Tony,
    >>> 
    >>> it works without any problems in rterm.
    >>> 
    >>> regards
    >>> Christian
    >>> 
    >>> A.J. Rossini wrote:
    >>> 
    >>>> What does it do in Rterm?  (though I suspect it mirrors Rgui not ESS
    >>>> -- but we need to be sure).
    >>>> 
    >>>> On 1/10/06, Christian Montel <christian.montel at eligo.de> wrote:
    >>>> 
    >>>> 
    >>>>> Hi,
    >>>>> 
    >>>>> i've got a problem when I try to plot a tree object generated with the
    >>>>> "party"-Package. Here's the minimal example:
    >>>>> 
    >>>>> 
    >>>>>> irisct <- ctree(Species ~ .,data = iris)
    >>>>>> plot(irisct)
    >>>>> 
    >>>>> R Version 2.2.0  (2005-10-06 r35749) running on Windows2000 through ESS
    >>>>> 5.2.11 and emacs-21.3 says
    >>>>> 
    >>>>> 
    >>>>>> Error in lazyLoadDBfetch(key, datafile, compressed, envhook) :
    >>>>> 
    >>>>> > recursive default argument reference
    >>>>> 
    >>>>> and shows an empty graphics window. Plotting trees generated with rpart
    >>>>> works fine, and executing the snippet above in the R gui directly also
    >>>>> works fine.
    >>>>> 
    >>>>> Any hints what I can do?
    >>>>> 
    >>>>> Thanks in advance,
    >>>>> 
    >>>>> best regards,
    >>>>> 
    >>>>> Christian
    >>>>> 
    >>>>> --
    >>>>> Dr. Christian Montel
    >>>>> Eligo GmbH - Büro Berlin
    >>>>> Friedrichstr. 90
    >>>>> 10 117 Berlin
    >>>>> Fon (030) -- 20 25 31 94
    >>>>> Fax (030) -- 20 25 33 33
    >>>>> e-mail: christian.montel at eligo.de
    >>>>> http://www.eligo.de/
    >>>>> 
    >>>>> ______________________________________________
    >>>>> ESS-help at stat.math.ethz.ch mailing list
    >>>>> https://stat.ethz.ch/mailman/listinfo/ess-help
    >>>>> 
    >>>> 
    >>>> 
    >>>> 
    >>>> --
    >>>> best,
    >>>> -tony
    >>>> 
    >>>> blindglobe at gmail.com
    >>>> Muttenz, Switzerland.
    >>>> "Commit early,commit often, and commit in a repository from which we can easily
    >>>> roll-back your mistakes" (AJR, 4Jan05).
    >>> 
    >>> --
    >>> Dr. Christian Montel
    >>> Eligo GmbH - Büro Berlin
    >>> Friedrichstr. 90
    >>> 10 117 Berlin
    >>> Fon (030) -- 20 25 31 94
    >>> Fax (030) -- 20 25 33 33
    >>> e-mail: christian.montel at eligo.de
    >>> http://www.eligo.de/
    >>> 
    >> 
    >> 
    >> 
    >> --
    >> best,
    >> -tony
    >> 
    >> blindglobe at gmail.com
    >> Muttenz, Switzerland.
    >> "Commit early,commit often, and commit in a repository from which we can easily
    >> roll-back your mistakes" (AJR, 4Jan05).

    Christian> -- 
    Christian> Dr. Christian Montel
    Christian> Eligo GmbH - Büro Berlin
    Christian> Friedrichstr. 90
    Christian> 10 117 Berlin
    Christian> Fon (030) -- 20 25 31 94
    Christian> Fax (030) -- 20 25 33 33
    Christian> e-mail: christian.montel at eligo.de
    Christian> http://www.eligo.de/

    Christian> ______________________________________________
    Christian> ESS-help at stat.math.ethz.ch mailing list
    Christian> https://stat.ethz.ch/mailman/listinfo/ess-help




More information about the ESS-help mailing list