[Roxygen-devel] usage section and long equasions

Hadley Wickham hadley at rice.edu
Thu Feb 9 05:03:28 CET 2012


> the first is regarding the automatically generated usage section. this usally
> works great, except when an option is very long. some automatic line breaks
> and additional indentation would be great here. see this generated doc, page
> 70, on the function "readability":
>  o http://r.reaktanz.de/pckg/koRpus/koRpus.pdf

This is a little tricky because it's hard (in general) to tell when
whitespace matters (i.e. inside a string) and when it doesn't (between
commas of a list).

> the second problem is similar and can be seen in the details section of the
> same function, p. 71ff., this time regarding the documented formulas. in
> theory LaTeX is capable of nicely displaying an equasion over several lines,
> is there a way to get this into the Rd file via roxygen2?

Can you introduce latex line breaks with \\ ?

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/


More information about the Roxygen-devel mailing list