-
Notifications
You must be signed in to change notification settings - Fork 1
/
view_reports.Rmd
36 lines (30 loc) · 1.07 KB
/
view_reports.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
title: "Analysis reports"
author: "Guillem Hurault"
date: "`r format(Sys.time(), '%d %B %Y')`"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
source(here::here(here::here("analysis", "00_init.R")))
```
You should open this file in the browser rather than in RStudio viewer, otherwise the relative paths may not work.
# Fit
```{r fit-table, results='asis', message=FALSE, echo=FALSE}
available_models() %>%
mutate(Link = file.path("..", "docs", paste0("fit_", Score, "_", Model, "_", Dataset, ".html")),
Link = gsub("\\+", "%2B", Link), # cf. escape + in html address
Link = paste0("- [", Model, "](", Link, ")")) %>%
pull(Link) %>%
cat(sep = "\n")
```
# Validation
```{r validation-table, results='asis', echo=FALSE}
expand_grid(Score = detail_POSCORAD()$Name,
Dataset = c("PFDC")) %>%
mutate(File = file.path("..", "docs", paste0("perf4_", Score, "_", Dataset, ".html"))) %>%
# filter(file.exists(File)) %>%
mutate(Link = paste0("- [", Score, "](", File, ")")) %>%
pull(Link) %>%
cat(sep = "\n")
```