RE: [R] postscript() filenames with forward slashes cause abort

From: Waichler, Scott R <Scott.Waichler_at_pnl.gov>
Date: Sat 30 Apr 2005 - 04:26:58 EST


> > My newly installed R-2.1.0 apparently doesn't like forward
> slashes in
> > filenames:
> >
> > > R.version.string
> > [1] "R version 2.1.0, 2005-04-18"
> > > plotfile <- "\home\mean_monthly_stl.eps"
> > > postscript(plotfile)
> > > plotfile <- "/home/mean_monthly_stl.eps"
> > > postscript(plotfile)
> > *** glibc detected *** double free or corruption (!prev):
> 0x098e7180
> > *** Abort
> >
>
> I would conjecture that it has to do with the fact that you
> do not have write permission in /home! The backslashed
> version just creates homemean_monthly_stl.eps in the current
> directory. If you substitute /tmp for /home, the problem goes
> away (provided you're on some kind of Unix/Linux -- you
> didn't say). It's still a bug of course.

Yes, that was it. When I first came across the problem, I had a typo in my longish pathname. For the post to R Help I wanted to simplify the problem as much as possible, and as luck would have it, I picked a shorter pathname that was not writeable by me.

Thanks,
Scott



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Apr 30 04:31:16 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:31 EST