Skip to content
Prev 8127 / 12125 Next

[R-pkg-devel] Sort order of vignette index?; adding purl'ed Rcode from asis vignette to vignette index?

Some quick comments:

- You could place the index.html directly in the inst/doc folder of your 
package sources, avoiding the need for .install_extras from the 
vignettes folder. This approach is useful if there is additional 
non-vignette material in inst/doc.

- As you say, links in index.html need to be relative to the installed 
*doc* dir, where the index file is located. For example, the simple links
     <a href="template.R">template script</a>,
     <a href="vignetteA.Rnw">source of vignette A</a>
should work to reference a static Rscript inst/doc/template.R and a 
vignette built from vignettes/vignetteA.Rnw (copied to inst/doc by R CMD 
build), respectively.

- It seems you could even generate the index.html via a vignette, 
index.Rmd, say. The downside is that this index vignette will be listed 
as a vignette (by browseVignettes(), for example) although it isn't 
really a vignette.

- browseVignettes() sorts by vignette title, not by file name. 
Furthermore, its purpose is to browse *vignettes* also across packages, 
so is unrelated to the *doc* index for a given package, which may 
contain more than vignettes.

Best regards,

	Sebastian Meyer


Am 01.06.22 um 23:47 schrieb Carl Schwarz: