added support for r documentation