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....@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@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel