Re: [Rd] Fwd: file mode lost in file.copy()?

2011-03-06 Thread Yihui Xie
Great! Thanks a lot! Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, Mar 6, 2011 at 10:26 PM, Henrik Bengtsson wrote: > FYI, > > this seems to be a known problem that has been address i

Re: [Rd] Fwd: file mode lost in file.copy()?

2011-03-06 Thread Henrik Bengtsson
FYI, this seems to be a known problem that has been address in the the devel version. From NEWS of R v2.13.0 devel: NEW FEATURES: - file.copy() now copies read/write/execute permissions on files (it already did so for directories in recursive copies). Source: http://cran.r-project.org/bin/wind

[Rd] Fwd: file mode lost in file.copy()?

2011-03-06 Thread Yihui Xie
Hi, I was suggested that this question should be reported to r-devel. Could you please make file.copy() preserve the file mode information? I see from the source code that file.copy() is basically file.append(): if (any(okay)) { okay[okay] <- file.create(to[okay]) if (any(okay

Re: [Rd] Extending type list: names and inherited methods issue

2011-03-06 Thread John Chambers
The "names" slot is not part of the basic vector types/classes. If you want to extend named lists, extend the class "namedList": > getClass("namedList") Class "namedList" [package "methods"] Slots: Name: .Data names Class: list character Extends: Class "list", from data part Cla