[R] R documentation, how to force Rcmd Rd2pdf to automatically break an overfull line in examples R-like section?

Duncan Murdoch murdoch.duncan at gmail.com
Wed Feb 27 01:14:32 CET 2013

On 13-02-26 3:32 AM, Ehsan Masoudi wrote:
> Hi all,
> My package passed Rcmd check successfully. but
> in constructed PDF format of R documentation, within the examples
> section, half of the line (R code) is out of the paper. I also found
> another CRAN submitted package, ftsa , that suffer from overfulling in a line too, see ftsa Reference manual.
> I guess this
> problem roots in the behavior of the verbatim environment in Latex. However there are some Latex packages to deal with this, http://tex.stackexchange.com/questions/14342/verbatim-environment-that-can-break-too-long-lines, but I do not know how to use them with Rcmd.
> 	1. In dealing with these cases, why Rcmd check does not show any error, warnings or    note as Latex does to point out to maintainer?

Because there is no test for that.  It might be useful to write one, but 
nobody has done so.

> 	2. How can I force line breaking in examples section?

Just put a line break in your code.

Duncan Murdoch

> Thank you
> Ehsan MasoudiMaster graduated in Mathematical Statistics,
> Ferdowsi university of Mashhad
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list