[Rd] small bug in plot.rpart?

From: <apjaworski_at_mmm.com>
Date: Wed, 15 Oct 2008 13:41:07 -0500


This happens in 2.8 and 2.9. I am posting this here because I am not sure if one should use bug.report for reporting bugs in unreleased versions.

I was trying to run the example from the help page of plot.rpart. I got

> library(rpart)
> fit <- rpart(Price ~ Mileage + Type + Country, cu.summary)
> plot(fit, compress=TRUE)

Error in get(getOption("device")) : invalid first argument

This also produces a blank graphics window. When I run the plot command again everything seems to work fine, so the error only occurs when the graphics window is not open.

I use Windows XP SP2. I just compiled the newest RC of 2.8 (R version 2.8.0 RC (2008-10-14 r46714)). I ran "make fullcheck" on it and everything checked out fine.

The same thing happens in 2.9 but it worked fine in 2.7.2.


Andy Jaworski
Process Laboratory
3M Corporate Research Laboratory

E-mail: apjaworski_at_mmm.com

Tel: (651) 733-6092
Fax: (651) 736-3122

        [[alternative HTML version deleted]]

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 15 Oct 2008 - 18:44:08 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 16 Oct 2008 - 05:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive