[Rd] Maths in R documentation (PR#523)

plummer@iarc.fr plummer@iarc.fr
Mon, 17 Apr 2000 18:09:40 +0200 (MET DST)

The document R-exts contains the following example of using
mathematics in R documentation.

\deqn{p(x) = {\lambda^x\ \frac{e^{-\lambda}}{x!}}
{p(x) = lambda^x exp(-lambda)/x!}

There is a syntax error in there, but that's not my point.
The problem is that using "R CMD Rd2dvi" I find that putting
the alternate forms of the equation on top of each other doesn't
work.

\deqn{foo}
{bar}

is interpreted as

\deqn{foo}
bar

which causes a number of problems,e.g. you get both forms of the
equation printed, LaTeX complains about missing math delimiters, etc.
I solved this by putting everything on one line:

\deqn{foo}{bar}

but there is either a documentation error in there, or a problem with
parsing ".Rd" format files.

Another problem is that when I type "R CMD Rd2dvi coda" to get a printable
reference for all the functions in the coda package, they seem to come out in
a more or less random order. I get
I was expecting alphabetical order. What do I have to do to get this?

Martyn

--please do not edit the information below--

Version:
platform = i686-unknown-linux
arch = i686
os = linux
system = i686, linux
status =
major = 1
minor = 0.1
year = 2000
month = April
day = 14
language = R

Search Path: