[Roxygen-devel] roxygenize() appears to ignore @source and @format for docType data
Kevin Middleton
kmm at csusb.edu
Wed Feb 16 18:07:06 CET 2011
Hi
roxygenize() appears to be ignoring @source and @format for docType data with use.Rd2 = TRUE. I think that this results from source and format being missing from roclet$register.default.parsers beginning at about line 417 in Rd2.R.
The patch (hopefully in a useful format) below seems to work on my machine. Nothing else appears to break (at least that I can tell so far from the last few weeks of using a modified Rd2.R). It's just adding 'source' and 'format'.
Cheers,
Kevin
--- Rd2.R 2009-07-27 08:13:38.000000000 -0700
+++ Rd2_mod.R 2011-02-03 16:00:40.000000000 -0800
@@ -419,7 +419,9 @@
'author',
'seealso',
'concept',
- 'docType')
+ 'docType',
+ 'source',
+ 'format')
roclet$register.parser('return',
function(key, expressions)
-------------------------------------------------
Kevin Middleton
Department of Biology
California State University San Bernardino
More information about the Roxygen-devel
mailing list