generated from USGS-R/slim-data-release-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
remake.yml
54 lines (41 loc) · 1.52 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
packages:
- tidyverse
- meddle # at least v0.0.12
- scipiper
- readr
- sbtools
- sf
sources:
- src/sb_utils.R
- src/file_utils.R
- src/file_functions.R
targets:
all:
depends:
- log/sb_posted_files.csv
# - out_data/drb_boundary.zip
- out_data/01_Data_Prep.zip
- out_data/02_Model_Code.zip
- out_data/03_Model_Predictions.zip
- out_data/nhm_attributes.zip
## Adding DRB boundary
sf_spatial_data:
command: read_sf('in_data/drb_boundary.shp')
# grab metadata from spatial file
spatial_metadata:
command: extract_feature(sf_spatial_data)
out_xml/fgdc_metadata.xml:
command: render(filename = target_name, "in_text/text_data_release.yml", spatial_metadata)
out_data/01_Data_Prep.zip:
command: zip_this(target_name, .object = 'in_data/01_Data_Prep')
out_data/02_Model_Code.zip:
command: zip_this(target_name, .object = 'in_data/02_Model_Code')
out_data/03_Model_Predictions.zip:
command: zip_this(target_name, .object = 'in_data/03_Model_Predictions')
out_data/nhm_attributes.zip:
command: zip_this(target_name, .object = 'in_data/nhm_attributes')
log/sb_posted_files.csv:
command: sb_replace_files(filename = target_name, sb_id = sbid, "out_data/01_Data_Prep.zip", "out_data/02_Model_Code.zip", "out_data/03_Model_Predictions.zip", "out_data/nhm_attributes.zip", "out_xml/fgdc_metadata.xml", sources = "src/sb_utils.R")
# ------ SB IDs --------
sbid:
command: c(I('63efb2c5d34efa0476b03854'))