Which functions are there to parse a NAMESPACE file (without installing the package)
Try the function parseNamespaceFile in base. Not documented but its output should be understandable. Peter On Tue, Jan 21, 2014 at 5:41 AM, Markus M?ller
<markus.mueller.1.g at gmail.com> wrote:
For the purpose of automatic documentation, I want to parse a NAMESPACE
file of the package to be documented.
I want to know the contents:
exportedClasses , exportedMethods and so on
to be able to hide the part of the documentation not exposed in the
NAMESPACE file.
Up to now I am parsing the file myself and do some regexpr stuff to get
what i want.
It would however be much nicer to use the facilities that R itself probably
provides, so that i could handle everything R can and remove the
unnecessary duplication.
(Since R hast to look at the NAMESPACE while e.g. building a package from
source those parsers should be certainly there)
I just don't know where to look for them.
Thanks in advance
Markus
[[alternative HTML version deleted]]
______________________________________________ R-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel