On Wed, 2 Nov 2011, Denis Chabot wrote:

Hi,

is there a reason that the quartz device does not like the "~" in file names, whereas most functions handling files (including pdf() ) have no problem with it?

Yes.
[Hint: no one contributed a patch for this wishlist item. The authors of mainstream graphics devices were generous enough to add tilde expansion: but you failed to thank them! Do remember that the people who gave you the gift of R are listening.]

The author of pdf().


Thus

pdf(file="/Users/dchabot/Documents/Programmes R/test.pdf", type="pdf", width=6, 
height=5) # works
pdf(file=~/Documents/Programmes R/test.pdf", type="pdf", width=6, height=5) # 
works

quartz(file="~/Documents/Programmes R/test.pdf", type="pdf", width=6, height=5) 
# does not work
quartz(file="/Users/dchabot/Documents/Programmes R/test.pdf", type="pdf", 
width=6, height=5) # works

Cheers,

Denis

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


--
Brian D. Ripley,                  [email protected]
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to