[R-pkg-devel] no source references for S4 classes?
markus.mueller.1.g at googlemail.com
Mon May 29 17:45:07 CEST 2017
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
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
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
[[alternative HTML version deleted]]
More information about the R-package-devel