From e209436a9581d308cb56203506c23d74fdb565ef Mon Sep 17 00:00:00 2001
From: MLopez-Ibanez <2620021+MLopez-Ibanez@users.noreply.github.com>
Date: Tue, 27 Aug 2024 13:15:49 +0100
Subject: [PATCH] Workround for bug
https://github.com/r-lib/pkgdown/issues/2704
---
r/_pkgdown.yml | 7 +++++++
r/vignettes/articles/eaf.Rmd | 8 +++++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/r/_pkgdown.yml b/r/_pkgdown.yml
index 045eeef5..df5e33b4 100644
--- a/r/_pkgdown.yml
+++ b/r/_pkgdown.yml
@@ -8,6 +8,13 @@ repo:
template:
bootstrap: 5
bootswatch: cosmo
+ # This is needed until https://github.com/r-lib/pkgdown/issues/2704 is fixed.
+ includes:
+ in_header: |
+
+
+
+
development:
mode: unreleased
diff --git a/r/vignettes/articles/eaf.Rmd b/r/vignettes/articles/eaf.Rmd
index b6e6ed42..a5b088af 100644
--- a/r/vignettes/articles/eaf.Rmd
+++ b/r/vignettes/articles/eaf.Rmd
@@ -50,10 +50,12 @@ for (r in runs) {
aucs <- c(aucs, auc)
}
-x <- melt(data.frame(r = runs, aoc = aocs, auc=aucs), id.vars="r")
+x <- melt(data.frame(r = runs, AOC = aocs, AUC=aucs), id.vars="r")
```
```{r}
-#| fig.alt = "Plot of EAF AUC versus mean AOC for various numbers of sets."
-ggplot(x, aes(r, value, color=variable, linetype=variable)) + geom_line()
+#| fig.alt = "Plot of EAF AUC versus mean AOC with increasing number of sets."
+ggplot(x, aes(r, value, color=variable, linetype=variable)) +
+ geom_line(linewidth=1.5) +
+ labs(x = "Number of sets", y = "Value", color = "", linetype="")
```