Tildes in R docmentation.
This is widely used in the system help files. See e.g lm.Rd which has
\code{response ~ terms}.
That works in text, html and latex (how do you think we get a reference
manual made?).
\textasciitilde is a standard part of latex (in file latex.ltx). The
feature was introduced in the 1995/12/01 release (see the usrguide.tex) so
it looks as if your latex is more than 5 years' old, or broken.
[...]
However the Rd to latex processor seems to be converting the ~
into ``\textasciitilde{}'' --- with a pair of braces on the end
as if there should be an argument to the control sequence. And
then latex is unable to find that control sequence.
That's not what {} means. It's an empty token to escape the following
space. (la)tex does not use {} to introduce arguments.
Can anyone explain to me what's going on, and how to go about solving the problem?
You do need a reasonably recent fully functional latex system. Probably no more than a couple of years' old (we don't have ancient installations around to test). [...]
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._