From peter.meilstrup at gmail.com  Tue Jan 21 15:35:33 2014
From: peter.meilstrup at gmail.com (Peter Meilstrup)
Date: Tue, 21 Jan 2014 06:35:33 -0800
Subject: [Rd] Which functions are there to parse a NAMESPACE file
 (without installing the package)
In-Reply-To: <CAOAQ5sprjxhUEVTBMKmka=Po03AAVkyij=Qgz6k-CFfJQPS2uQ@mail.gmail.com>
References: <CAOAQ5sprjxhUEVTBMKmka=Po03AAVkyij=Qgz6k-CFfJQPS2uQ@mail.gmail.com>
Message-ID: <CAJoaRhZBHa_ZwxupE1smNVR9YS63vuUw2Xq_4Nzn+Wz-8ZPs0g@mail.gmail.com>

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



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