[R-SIG-Mac] saving files using quartz engine
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sat Nov 19 12:00:43 CET 2011
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
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
--
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 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-SIG-Mac
mailing list