Skip to content
Prev 8422 / 12125 Next

[R-pkg-devel] Undocumented requirement for CRAN

For experienced R developer like you, certain things might seem obvious 
without the need of any documentation.

But please understand that other languages do not have such requirements.
So for new people, or people coming from different languages, this might 
not seem as obvious as it is for you.

R already has a capability to do automated checking of packages to 
enforce certain level of quality.
 From this perspective, at least to me, it doesn't make sense that some 
issues are automatically flagged,
while other issues, which might be on the same or lower level of 
complexity, are not.
(also, packages are not journal articles)

Same with documentation, I can't spot and fix an issue, if I am not even 
aware that it is an issue.


 > If a user can't count on the interface for those functions remaining 
unchanged, why document it in a user-visible place?

Why not? Even unexported functions are user-visible through ::: . Since 
they are already documented, I might as well produce full documentation 
that is checked during `R CMD check`.
Isn't one of the R's advantage the ability to read code of any function 
without wading through the source files?

 > The fact that some base packages don't document this is a deficiency 
in that documentation, not an excuse for having a deficiency in your 
documentation.

That is good to know. I certainly know it now after having to fix this 
issue in my package. But how I am was supposed to know about it when 
this problem is not documented, `R CMD check` doesn't flag it, and 
official documentation uses it?


-- Jirka
On 9/13/22 11:19, Duncan Murdoch wrote: