-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslides.Rmd
148 lines (124 loc) · 3.95 KB
/
slides.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
---
title: "Reproducible <br> Analytical Pipelines <br> in NHS Scotland"
subtitle: "Transforming Publishing Programme"
author: 'Anna Price <br> Information Services Division <br>'
date: "May 28, 2019 <br><br> Slides: https://github.com/annahprice/RAP-champions"
output:
ioslides_presentation:
css: my-theme.css
---
```{r setup, include = FALSE}
library(knitr)
library(magrittr)
library(kableExtra)
knitr::opts_chunk$set(echo = FALSE)
# Create data frame for levels of automation table
automation_levels <- data.frame(c(1:3, c("4a", "4b"), 5:7),
c("Ad hoc R code",
"R project",
"R project under version control (VC)",
"R project under VC and peer reviewed (wrangling)",
"Replicable report in Rmarkdown (publication)",
"Near RAP (as above plus data quality assurance and package management)",
"Full RAP (as above plus unit testing and documentation)",
"R package"))
```
## What we will cover today
<div class="columns-2">
<ul>
```{r out.width = "22%"}
include_graphics("images/Anna_Avatar.jpg")
```
<br>
```{r out.width = "6%"}
include_graphics("images/twitter.png")
```
@price_AH
<br>
```{r out.width = "6%"}
include_graphics("images/github.png")
```
annahprice
</ul>
<ul>
**Anna Price**: Levels of RAP and biggest challenges
</div>
<div class="columns-2">
<ul>
```{r out.width = "22%"}
include_graphics("images/David_Avatar.jpg")
```
<br>
```{r out.width = "6%"}
include_graphics("images/twitter.png")
```
@Tyjet92
<br>
```{r out.width = "6%"}
include_graphics("images/github.png")
```
davidc92
</ul>
<ul>
**David Caldwell**: Our first RAP project
</div>
<div class="columns-2">
<ul>
```{r out.width = "22%"}
include_graphics("images/Jack_Avatar.jpg")
```
<br>
```{r out.width = "6%", }
include_graphics("images/github.png")
```
jackhannah95
</ul>
<ul>
**Jack Hannah**: Scaling RAP in NHS Scotland
</div>
<br>
Contact us: [email protected]
[Transforming Publishing on GitHub](https://github.com/NHS-NSS-transforming-publications)
## Background
- The Information Services Division (ISD) of the National Health Service (NHS) Scotland produces around 200 official and national statistics publications each year.
- Traditional publication output is a **static pdf document** with accompanying **excel tables**.
- Production uses **proprietary software** and is **time-consuming**, involving extensive manual formatting and checking.
```{r out.width = "40%", fig.align = 'center'}
include_graphics("images/pdf report.png")
```
## What is a RAP project?
- No (or few) manual steps = data and output produced using code
- High quality and auditable = version control
- Sustainable = peer review
- "Bells and whistles" = _functions, documenting/testing these functions, package management and computing environment_
```{r out.width = "60%", fig.align = 'center'}
include_graphics("images/rap.jpg")
```
## [Levels of RAP/automation](https://www.isdscotland.org/About-ISD/Methodologies/_docs/Reproducible_Analytical_Pipelines_paper_v1.4.pdf)
```{r, echo = FALSE}
kable(automation_levels,
col.names = c("Level", "Description"),
format = "markdown")
```
## Challenges
- Senior management buy in
- Culture change (peer review and working in the open)
- New skills for analysts to learn (R, git, etc)
- Required development time
- Range of data sources and/or unstable production process
- IT...
## IT Infrastructure
- R desktop and server versions
- RStudio Server Pro
- Package management
- git
- git-repository hosting service (GitHub/Gitea)
And what's next...? Travis? Docker?
## Questions/Discussion
Do others have experience of similar challenges in their department/organisation?
<br>
<br>
What makes a RAP project?
<br>
<br>
What level of RAP are others working to?