[Roxygen-devel] Why does roxygen generate ./inst/doc?

Peter Danenberg pcd at roxygen.org
Tue Oct 26 23:32:14 CEST 2010


Quoth Vinh Nguyen on Prickle-Prickle, the 7th of The Aftermath:
> I don't know why roxygen is generating this empty directory when I run
> "R CMD roxygen -d -s pkg".  Because of this, I keep getting a WARNING
> when I run "R CMD check" since it is empty.  Is there a way to remove
> this?

We removed callgraphs because RGraphiz was an onerous dependency; we
need to either rewrite it using an R-native package or delete
references to it.

roxygenize() does indeed create a package skeleton consisting of ./man
and ./inst/doc; maybe we should create the latter only conditionally
if there are callgraphs.

This trivial patch would prevent inst/doc from being created
preemptively; we could then create it as needed from the callgraph
roclet.
-------------- next part --------------
Index: roxygenize.R
===================================================================
--- roxygenize.R	(revision 250)
+++ roxygenize.R	(working copy)
@@ -90,8 +90,7 @@
   package.description <- file.path(package.dir, DESCRIPTION.FILE)
   roxygen.description <- file.path(roxygen.dir, DESCRIPTION.FILE)
   skeleton <- c(roxygen.dir,
-                man.dir,
-                doc.dir)
+                man.dir)
 
   if (copy.package)
     copy.dir(package.dir,


More information about the Roxygen-devel mailing list