[Roxygen-devel] Bug and patch for the collate roclet

Jeffrey Arnold jeffrey.arnold at gmail.com
Mon Jul 26 04:52:51 CEST 2010


The collate doclet was including all the files in the R directory, even
temporary files ending in *~, in the collate
line of the DESCRIPTION file. This was giving errors with R CMD check.

The following tiny patch to make.collate.roclet() alters the parse function
to only include *.R or *.r files in the directory.


Index: pkg/R/collate.R
===================================================================
@@ -160,7 +160,9 @@ make.collate.roclet <- function(merge.file=NULL,
     do.call(roclet$parse,
             as.list(list.files('.',
                                recursive=TRUE,
-                               full.names=FALSE)))
+                               full.names=FALSE,
+                               pattern="\\.[Rr]$"
+                               )))
   }

   roclet


-------------

Jeffrey Arnold
Political Science Department
University of Rochester
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/roxygen-devel/attachments/20100725/03ac1abb/attachment.htm>


More information about the Roxygen-devel mailing list