Re: [R] R console closes on its own

From: Jorge Iván Vélez <jorgeivanvelez_at_gmail.com>
Date: Wed, 20 Feb 2008 20:00:13 -0500

Hi Judith,

If I undestand, see ?savePlot and try this

xyplot(dat$a~dat$b)
savePlot(filename="C:\\yourname",type=c("pdf"),device=dev.cur())

I hope this helps.

Jorge

On 2/20/08, Judith Flores <juryef_at_yahoo.com> wrote:
>
> Dear R-experts,
>
> I am running a script that has the following
> structure:
>
> windows(height=5.5,width=8)
>
> dat<-read.csv("myfile.csv")
> names(dat)<-c('a','b','c','d')
> dat<-dat[,1:4]
>
> xyplot(dat$a~dat$b)
>
>
> Then I usually save the plot as a PDF (from the
> menu in the R console). I can save the PDF twice in a
> row; but at the third time, right when I am about to
> give a name to the graph, R crashes, no error
> messages.
>
> I am using R 2.6.2, for Windows. I copy the script
> from TinnR.
>
> Thank you in adavance for any help,
>
> Judith
>
>
>
>
> ____________________________________________________________________________________
> Never miss a thing. Make Yahoo your home page.
>
> ______________________________________________
> 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.

        [[alternative HTML version deleted]]



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. Received on Thu 21 Feb 2008 - 01:04:00 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 21 Feb 2008 - 01:30:15 GMT.

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

list of date sections of archive