[R] dvips function gives "Documents not found" error
Frank E Harrell Jr
feh3k at spamcop.net
Mon Nov 24 14:12:28 CET 2003
On Mon, 24 Nov 2003 10:53:48 +0000 (GMT)
Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
> This is a question about Hmisc, I believe, although you certainly did
> not mention it. Looking at the source code I see
>
> sys(paste("cd", tempdir(), sc, optionsCmds("latex"), tmp))
>
> do my guess is that it is writing .dvi files in tempdir().
> If you look up help on tempdir() you will see how to avoid this,
>
> Moral: don't guess, and don't make your readers guess either.
>
> And to Frank Harrell as author of Hmisc: spaces are valid in file names
> even on Unix/Linux, so it would be nice if this could be corrected.
I've resisted this until now. The fix appears to be to surround tempdir()
and tmp by dQuote( ). This will be in the next release. I'm assuming that
superfluous quotes never hurt. -Frank
---
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University
More information about the R-help
mailing list