Hi I am developing a small package that converts comments to documentation. One of my design aims is to duplicate as little as possible of R 's internal machinery.
In particular I want to load the package (to be documented) with 'library', inspect all its objects like functions,generics methods and classes and then apply my genericFunction 'writeRdFile' to every one of these objects. If possible I want to avoid parsing the package code myself. This works well for functions, generics, S4 methods since 'srcref' in these cases yields the snippet of code that I want. For S4 classes it yields NULL however, while I would like to something like setClass(Class=MyClass,representation.... Is there an alternative ? p.s. I am aware of roxygen and inlinedocs, but both of them parse and eveluate the source code themselves. Thanks a lot in advance Markus [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel