|
1 | 1 | # File src/library/tools/R/Vignettes.R |
2 | 2 | # Part of the R package, https://www.R-project.org |
3 | 3 | # |
4 | | -# Copyright (C) 1995-2024 The R Core Team |
| 4 | +# Copyright (C) 1995-2025 The R Core Team |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify |
7 | 7 | # it under the terms of the GNU General Public License as published by |
@@ -1058,12 +1058,15 @@ function(x, ...) |
1058 | 1058 |
|
1059 | 1059 | ### * .writeVignetteHtmlIndex |
1060 | 1060 |
|
1061 | | -## NB SamplerCompare has a .Rnw file which produces no R code. |
1062 | 1061 | .writeVignetteHtmlIndex <- |
1063 | 1062 | function(pkg, con, vignetteIndex = NULL) |
1064 | 1063 | { |
1065 | | - ## FIXME: in principle we could need to set an encoding here |
1066 | | - html <- c(HTMLheader("Vignettes and other documentation"), |
| 1064 | + html <- c(HTMLheader("Vignettes and other documentation", |
| 1065 | + up = "../html/00Index.html", |
| 1066 | + css = "../html/R.css", # installed since R 2.13.0 |
| 1067 | + ## relative paths to 'top' and 'logo' will only work |
| 1068 | + ## for the (site-)library in RHOME (or dynamic help) |
| 1069 | + Rhome = "../../.."), |
1067 | 1070 | paste0("<h2>Vignettes from package '", pkg,"'</h2>"), |
1068 | 1071 | if(NROW(vignetteIndex) == 0L) ## NROW(NULL) = 0 |
1069 | 1072 | "The package contains no vignette meta-information." |
|
0 commit comments