A
sophisticated version of this scheme
might even assume different levels of
knowledge of the user so that the least
detailed level might be longer (but
easier) than a more detailed level.
Patrick Burns
patrick at burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of "The R Inferno" and "A Guide for the Unwilling S User")
spencerg wrote:
There are many arguments in many functions that are rarely used. I
prefer to see it all documented in the help pages. If they are not
documented in the help pages (and sometimes even if they
who wants them can invent other ways to get similar
much greater effort, and do so for years only to eventually
easier way buried in the documentation. Example: I was
years that "nls" would refuse to produce output if it did
I often used "optim" instead of "nls" for that reason.
list returned by "optim" does not have the nice methods
with an "nls" object. Eventually, I found the "warnOnly" option
documented under "nls.control", which has made "nls" easier
Spencer Graves
William Dunlap wrote:
There are several help files in the R sources that
describe concepts and not particular R objects.
E.g., help(Methods), help(Syntax), and help(regex).
They don't have a docType entry and their alias
entries do not refer to functions. Perhaps your
debugging documentation could go into a similar
*.Rd file.
Does check balk at such help files in a package? Should it?
Should there be a special docType for such help files?
Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
-----Original Message-----
From: r-devel-bounces at r-project.org
[mailto:r-devel-bounces at r-project.org] On Behalf Of Charles Geyer
Sent: Monday, October 05, 2009 10:51 AM
To: r-devel at r-project.org
Subject: [Rd] how to document stuff most users don't want to see
The functions metrop and temper in the mcmc package have
argument that when TRUE adds a lot of debugging
returned
list. This is absolutely necessary to test the
generally knows nothing about the simulated distribution
what
one learns from MCMC samples. Hence you must expose all
simulation to have any hope of checking that it is doing
supposed
to do. However, this information is of interested mostly
solely)
to developers. So I didn't document it in the Rd files for these
functions.
But it has ocurred to me that people might be interested
functions
are validated, and I would like to document the debug output
somewhere, but I
don't want to clutter up the documentation that ordinary
That
suggests a separate help page for debugging. Looking at
Extensions"
it doesn't seem like there is a type of Rd file for this
suppose
it could be added in (fairly long) sections titled "Debug
metrop.Rd
and temper.Rd or it could be put in a package help page (although
that's not
what that kind of page is really for). Any other
consider?
--
Charles Geyer
Professor, School of Statistics
University of Minnesota
charlie at stat.umn.edu