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 Class vector,

[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