Unless filename is NA, a documentation shell for
object is written to the file specified by filename, and
a message about this is given. For function objects, this shell
contains the proper function and argument names. R documentation
files thus created still need to be edited and moved into the
man subdirectory of the package containing the object to be
documented.
If filename is NA, a list-style representation of the
documentation shell is created and returned. Writing the shell to a
file amounts to cat(unlist(x), file = filename, sep = "\n"),
where x is the list-style representation.
When prompt is used in for loops or scripts, the
explicit name specification will be useful.
The importPage argument for promptImport needs to give
the base of the name of the
help file of the original help page. For example,
the approx function is documented in approxfun.Rd
in the stats package, so if it were imported and re-exported
it should have importPage = "approxfun".
Objects that are imported from other packages are not
normally documented unless re-exported.