[R-pkg-devel] Alignment of Function Arguments For PDF Manual and HTML

Georgi Boshnakov georgi.boshnakov at manchester.ac.uk
Thu Mar 1 09:59:02 CET 2018


The answer probably is No.

In principle, the usage section is in verbatim and I think that the R help system respects that also in html.
But how the html is rendered depends on the style used by the renderer, which may have other ideas and may reflow the text depending on the width of the window.

Georgi Boshnakov

-----Original Message-----
From: R-package-devel [mailto:r-package-devel-bounces at r-project.org] On Behalf Of Dario Strbenac
Sent: 01 March 2018 05:00
To: r-package-devel at r-project.org
Subject: [R-pkg-devel] Alignment of Function Arguments For PDF Manual and HTML

Good day,

If I have a function definition in the Usage section of an R documentation file (file name ending in .Rd) that requires two or more lines to specify, can I format it so that the first letter of the first variable on the second and subsequent lines is aligned with the opening bracket of the function in the PDF manual created by R CMD Rd2pdf and has the same appearance in the HTML page shown in RStudio? I notice that if I align the text for a particular output format, it doesn't look aligned in the other. The package I am developing is a part of Bioconductor, so I can't modify options to Rd2pdf.

Dario Strbenac
University of Sydney
Camperdown NSW 2050

R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

More information about the R-package-devel mailing list