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

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Sat 30 Apr 2005 - 04:10:33 EST

"Waichler, Scott R" <Scott.Waichler@pnl.gov> writes:

> 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
>
> Does this have something to do with UTF-8 (about which I know little)?

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.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

______________________________________________
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:16:05 2005

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