[ESS] Problem plotting tree (party pkg)

Christian Montel christian.montel at eligo.de
Wed Jan 11 10:59:35 CET 2006


Hi Martin,

thank you for your reply -- I hope you're right and I do something wrong 
-- if you have any clue, please give me a hint.

That's what i did:

Setup A:
-> start CMD using Win2000 "Start->Execute-Menu
-> type rterm <enter> in that shell
-> type sessionInfo <enter> after R prompt
Result:
 > sessionInfo()
R version 2.2.0, 2005-10-06, i386-pc-mingw32

attached base packages:
[1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
[7] "base"


Setup B:
-> start emacs21-3
-> type M-x r <enter>
-> move to *R*-buffer
-> type sessionInfo <enter> after R prompt

Result:
 > sessionInfo()
R version 2.2.0, 2005-10-06, i386-pc-mingw32

attached base packages:
[1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
[7] "base"


Do you have any propositions how i can figure out what else could be 
wrong with my setup? I once had a problem with umlauts in graphics 
earlier which i solved adding a line in my .emacs-file:
(setq process-coding-system-alist '(("[rR]" undecided-dos . latin-1)))

But: commenting out that line doesn't solve the problem.

regards

christian





Martin Maechler wrote:
>>>>>>"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
> 
> 

-- 
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/




More information about the ESS-help mailing list