[Rd] Which functions are there to parse a NAMESPACE file (without installing the package)

Peter Meilstrup peter.meilstrup at gmail.com
Tue Jan 21 15:35:33 CET 2014


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



More information about the R-devel mailing list