On 04 Nov 2005 13:51:56 +0100, Peter Dalgaard wrote:
There you can find xml file for R scripts. I've made it from some
example. It is really only a proof of a concept. But it would not be
very difficult to produce xml files for mimetypes of all R related
files. We must only decide which R related files would benefit from
having mimetypes.
My proposal is
1. R source code, R scripts. Files with extensions .R, .r and others
(.q?, .s?, .S?). Mimetypes text/x-R, text/x-Rsrc
My inclination would be to stick with .R, possibly adding .r to guard
against Windows case-folding issues, but .r used to be Ratfor files.
.q/.s/.S are used by some people supporting both R and S-PLUS, but I
don't think they care how such files are displayed by Nautilus and
Konqueror...
2. R documentation files. File extension .Rd. Mimetype text/x-Rd
3. RData files. File extension .RData, files which at beginning have
RDX2. Mimetype application/x-RData.
Why the RDX2 bit?? We do have .RDA from windows, too.
4. Rhistory files. File extension .Rhistory. Mimetype text/x-Rhistory
5. R transcript files from ESS/Emacs. File extension .Rt. Mimetype
text/x-Rtranscript
.Rout, please. Also .Rout.save and .Rout.fail. (And it's not just
ESS that creates them).
Also
6. Rprofile files .Rprofile or Rprofile.
I could write and test the xml code. But first we have to agree on
which files benefit from having mimetypes and how the mimetypes should
be named. Feel free to suggest.