Skip to content
Prev 4209 / 12125 Next

[R-pkg-devel] Note on winbuilder-develop

On 24/07/2019 6:54 a.m., Martin Maechler wrote:
To me that seems like too much work.  If I'm writing something that 
needs user comments, I would probably put it in a package, and use 
prompt() to immediately start putting user documentation into an Rd 
file.  (There can also be programmer documentation that belongs in the 
.R file.)

The disadvantage of my approach is that it's a little clunky to handle 
changes to the function signatures.  There's a function Rdpack::reprompt 
that is supposed to update Rd files when the sources change; I should 
probably adopt it as part of my workflow, but I haven't done so.
I agree with you about the value of writing Rd files, and the cost (e.g. 
incorrect Rd files with confusing error messages like Roy found) of 
relying on Roxygen.  But there are lots of people who disagree with us.

Duncan