Hi, I'm using R1.5.0 on Mac OS 9.1 to create graphics as pdf files. One problem, admittedly pretty minor, is that the file type and creator are blank. Is there any way from within R of setting the file type and/or file creator of the resulting files so that OS9 can work out which program to open the files in? Thanks in advance, David Orme -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 30 Oct 2002, David Orme wrote:> I'm using R1.5.0 on Mac OS 9.1 to create graphics as pdf files. One > problem, admittedly pretty minor, is that the file type and creator > are blank. Is there any way from within R of setting the file type > and/or file creator of the resulting files so that OS9 can work out > which program to open the files in?I don't see file type as a field in the PDF spec, and also don't see how a field in a file can help tell you which program to open it with, when it is already open by then .... The creator field could be filed in as R, I guess, but it won't help you. It's purely for information. I think your OS has not got its MIME types sorted. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thomas Lumley <tlumley at u.washington.edu> wrote:> On Wed, 30 Oct 2002, Jan de Leeuw wrote:> > Although many people deplore this, OS X writes flat files as well and > > derives type/creator information from the name of the file. So foo.pdf > > is known to be a pdf file and the finder knows that pdf files must be > > opened with AcroRead or Preview or whatever you set in your > > preferences. This is the classical MIME-type scheme, less flexible, > > more simple. > > I don't see how it can be that simple -- some of my PDF files think they > belong to Acrobat, and some think they belong to Preview.A common misconception is that Mac OS X no longer uses type/creator codes. It is true that Apple appears to want to phase them out, but they are still there and still work, even with Cocoa applications. My feeling is that this excellent technology should be preserved and if enough developers keep using it, maybe Apple will have a change of heart. So how about some brave person implementing it in the OS X version of R :-) Luke Whitaker -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._