-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.rmd
51 lines (44 loc) · 995 Bytes
/
index.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
title: "SNSF Budget"
output:
flexdashboard::flex_dashboard:
theme: cerulean
social: menu
source_code: https://git.io/vb2Tv
editor_options:
chunk_output_type: console
---
```{r boilerplate, include=FALSE}
if (!require(pacman)) install.packages("pacman")
if (!require(janitor)) install.packages("janitor")
p_load(
"flexdashboard",
"networkD3",
"tidyverse",
"magrittr",
"lubridate",
"here")
YEAR <- 2019
```
```{r read, cache=TRUE, include=FALSE}
here("R", "read.R") %>% source(verbose = TRUE)
```
```{r logic, include=FALSE}
here("R", "logic.R") %>% source(verbose = TRUE)
```
Column
-------------------------------------
### Approved Amounts for SNSF Grants Starting in `r YEAR`
```{r frontend}
sankeyNetwork(
Links = links,
Nodes = nodes,
Source = "source",
Target = "target",
Value = "value",
NodeID = "name"
units = "CHF",
fontSize = 14,
nodeWidth = 45)
```
> Last updated: `r Sys.time()`. Compiled with `r version$version.string`.