forked from dfalster/baad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremake.yml
146 lines (129 loc) · 3.21 KB
/
remake.yml
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
packages:
- plyr
- rmarkdown
- knitr
- maps
- mapdata
- Taxonstand
- taxize
- methods
- bibtex
- devtools
sources:
- R
include:
# This file is automatically generated and is quite large. It defines
# targets for each data set, plus the 'baad' target.
- remake_data.yml
# This defines all the reports and including it greatly slows down
# remake (both in the startup time and in checking the dependency
# graph). Commenting it out might be useful sometimes.
- remake_reports.yml
targets:
all:
depends:
- baad
- export
manuscript:
depends:
- ms/ms.docx
- ms/ms.html
- ms/metadata.docx
- ms/metadata.html
everything:
depends:
- export
- manuscript
- reports
compiler_contacts:
command: read_csv("config/contact.csv")
author_info:
command: author_details(compiler_contacts, baad)
export/authors.csv:
command: save_author_details(author_info, target_name)
ms/ms.md:
knitr:
chdir: true
auto_figure_prefix: true
depends:
- baad
- author_info
- R/ms.R
ms/metadata.md:
knitr:
chdir: true
auto_figure_prefix: true
packages:
- whisker
- knitcitations
depends:
- baad
- ms/refs.bib
- R/ms.R
ms/metadata.html:
command: render_html("ms/metadata.md")
quiet: true
ms/metadata.docx:
command: render_doc("ms/metadata.md")
quiet: true
ms/ms.html:
command: render_html("ms/metadata.md")
quiet: true
ms/ms.docx:
command: render_doc("ms/ms.md")
quiet: true
## exporting targets
export:
depends:
- export/baad.rds
- export/baad_data.csv
- export/baad_contacts.csv
- export/baad_references.csv
- export/baad_metadata.csv
- export/baad_methods.csv
- export/baad.bib
- export/baad_dictionary.csv
export/baad.rds:
command: saveRDS(baad, target_name)
export/baad_data.csv:
command: write_csv(baad_data, target_name)
export/baad_contacts.csv:
command: write_csv(baad_contacts, target_name)
export/baad_references.csv:
command: write_csv(baad_references, target_name)
export/baad_metadata.csv:
command: write_csv(baad_metadata, target_name)
export/baad_methods.csv:
command: write_csv(baad_methods, target_name)
export/baad.bib:
command: write.bib(baad_bibtex, target_name)
quiet: true
export/baad_dictionary.csv:
command: write_csv(baad_dictionary, target_name)
## baad elements
baad_data:
command: extract_baad_data(baad)
baad_contacts:
command: extract_baad_contacts(baad)
baad_references:
command: extract_baad_references(baad)
baad_metadata:
command: extract_baad_metadata(baad)
baad_methods:
command: extract_baad_methods(baad)
baad_bibtex:
command: extract_baad_bibtex(baad)
baad_dictionary:
command: extract_baad_dictionary(baad)
release/baad_data.zip:
command: make_release_baad_data_zip(target_name)
depends: export
release/baad.zip:
command: make_release_baad_code_zip(target_name)
release/baad.rds:
command: file.copy("export/baad.rds", target_name)
release:
depends:
- release/baad_data.zip
- release/baad.zip
- release/baad.rds