-
Notifications
You must be signed in to change notification settings - Fork 8
/
make_inform.R
40 lines (30 loc) · 1.05 KB
/
make_inform.R
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
## make_inform.r
## this script will stitch or 'knit' together all the individual .md files and push online to ohi-science.org.
## also required if you get the pdflatex error: www.tug.org/mactex
## setup ----
source('~/github/ohimanual/make_functions.r') # rendering functions for OHI
title_header = 'The Ocean Health Index Inform Phase'
subtitle_header = ''
title_short = 'Inform'
wd = '~/github/ohimanual/4_inform'
setwd(wd)
## .md files to be included in this order: ----
in_md = c('Introduction_Informing.md',
'Test_scenarios.md',
'Reach_agreements.md',
'Outreach_and_Communications.md',
'Disseminating_Findings.md',
'Communicate_Results_with_Partners.md',
'Develop_Strategies.md',
'Reassess.md')
# summarzing ending #TODO: add some kind of summary
## final .md filename
out_md = 'ohi-inform.md'
## concatenate md ----
cat_md(in_md, out_md)
pfx = tools::file_path_sans_ext(out_md)
## render and save html, pdf ----
ohi_html(out_md)
ohi_pdf(out_md)
## push to ohi-science.org website ----
push_to_web(out_md)