Skip to content

Commit

Permalink
Workround for bug r-lib/pkgdown#2704
Browse files Browse the repository at this point in the history
  • Loading branch information
MLopez-Ibanez committed Aug 27, 2024
1 parent a8c6ff8 commit e209436
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions r/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
development:
mode: unreleased
Expand Down
8 changes: 5 additions & 3 deletions r/vignettes/articles/eaf.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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="")
```

0 comments on commit e209436

Please sign in to comment.