(Sent via the answer I just left in R-help :)
As a workaround, you can include your own xvignette function in your package: see below. It will not show you the indexes, but it will pick up any file with the corresponding name that you include in the inst/doc directory of your package ...
xvignette <- function(vname,pkg,ext="pdf") { vname <- paste(vname,ext,sep=".") fn <- system.file("doc",vname,package=pkg) if (nchar(fn)==0) stop("file not found") utils:::print.vignette(list(pdf=fn)) invisible(fn) }
You need to somehow warn the users of the package that this alternative documentation exists - perhaps in the help file for the package itself.
You can fill in the default pkg above with your package name to make it easier for the user: I thought about using some option getPackageName(environment(xvignette)) to do it automatically, but it seems too complicated ...
Brian Ripley also mentioned in his answer to the question that:
Vignette () currently stands for Sweave documents, since only they have metadata like names. It is planned to change soon.
... but I don’t know what it means "soon" (it will be about 6 months, until, as it seems to me, 2.14.0 is coming out)
edit : http://article.gmane.org/gmane.comp.lang.r.devel/28449 describes another method in detail (creating a dummy vignette that includes an existing PDF file)
edit 2 : and
Ben bolker
source share