Skip to content

Commit 7602a40

Browse files
committed
changed headers of vignette chunks
1 parent 3d3bbcf commit 7602a40

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: lionfish
22
Title: Interactive 'tourr's Using 'python'
3-
Version: 1.0.15
3+
Version: 1.0.16
44
Authors@R:
55
person("Matthias", "Medl", , "matthias.medl@chello.at", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0002-3354-4579"))

vignettes/Bioprocess-Optimization.Rmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,13 @@ set.seed(42)
134134
library(tourr)
135135
136136
display_size <- 5 # Adjust to fit your display
137+
```
137138

139+
```{r, eval=FALSE}
138140
init_env()
141+
```
139142

143+
```{r, results="hide", message=FALSE}
140144
lda_tour_history_1d <- save_history(data_wo_y,
141145
tour_path = guided_tour(lda_pp(yield_values),d=1))
142146
@@ -261,7 +265,7 @@ processes 09, 13, 17, 31, 32, and 36, and biological materials 03, 06,
261265
11 and 12. As a next step we reduce the dataset to only contain these
262266
variables and visualize the data in the same way we did earlier.
263267

264-
```{r}
268+
```{r,results = 'hide', warning=FALSE, message=FALSE}
265269
data_rf_sel <- data[, ..top_10_features]
266270
267271
grand_tour_history_1d <- save_history(data_rf_sel,
@@ -319,7 +323,7 @@ new_intervals <- seq(new_min_yield, new_max_yield, length.out = 4)
319323
new_yield_values <- findInterval(data$Yield, new_intervals, rightmost.closed = TRUE)
320324
```
321325

322-
```{r}
326+
```{r,results = 'hide', warning=FALSE, message=FALSE}
323327
grand_tour_history_1d <- save_history(data_rf_sel,
324328
tour_path = guided_tour(lda_pp(new_yield_values),d=1))
325329
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2+
// be compatible with the behavior of Pandoc < 2.8).
3+
document.addEventListener('DOMContentLoaded', function(e) {
4+
var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
5+
var i, h, a;
6+
for (i = 0; i < hs.length; i++) {
7+
h = hs[i];
8+
if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
9+
a = h.attributes;
10+
while (a.length > 0) h.removeAttribute(a[0].name);
11+
}
12+
});

0 commit comments

Comments
 (0)