Skip to content

Commit

Permalink
Add priorities (default is 0) to targets
Browse files Browse the repository at this point in the history
This should run the lookups and 'all year' files first.
  • Loading branch information
Moohan committed Jul 17, 2023
1 parent 8e1bcc9 commit e8dd458
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions _targets.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ list(
process_lookup_sc_demographics(
sc_demog_data,
write_to_disk = write_to_disk
)
),
priority = 0.9
),
tar_target(
tests_sc_demog_lookup,
Expand All @@ -70,7 +71,8 @@ list(
process_it_chi_deaths(
data = it_chi_deaths_extract,
write_to_disk = write_to_disk
)
),
priority = 0.9
),
tar_target(
tests_it_chi_deaths,
Expand All @@ -83,7 +85,8 @@ list(
gpprac_ref_path = gpprac_ref_path,
spd_path = spd_path,
write_to_disk = write_to_disk
)
),
priority = 0.9
),
tar_target(
tests_source_gp_lookup,
Expand All @@ -96,16 +99,17 @@ list(
simd_path = simd_path,
locality_path = locality_path,
write_to_disk = write_to_disk
)
),
priority = 0.9
),
tar_target(
tests_source_pc_lookup,
process_tests_lookup_pc(source_pc_lookup)
),
## Cost Lookups ##
tar_target(ch_cost_lookup, process_costs_ch_rmd()),
tar_target(dn_cost_lookup, process_costs_dn_rmd()),
tar_target(hc_cost_lookup, process_costs_hc_rmd()),
tar_target(ch_cost_lookup, process_costs_ch_rmd(), priority = 0.8),
tar_target(dn_cost_lookup, process_costs_dn_rmd(), priority = 0.8),
tar_target(hc_cost_lookup, process_costs_hc_rmd(), priority = 0.8),
tar_target(gp_ooh_cost_lookup, process_costs_gp_ooh_rmd()),
## Social Care - 'All' data ##
tar_target(
Expand All @@ -122,7 +126,8 @@ list(
all_at_extract,
sc_demog_lookup = sc_demog_lookup,
write_to_disk = write_to_disk
)
),
priority = 0.5
),
tar_target(
all_home_care_extract,
Expand All @@ -138,7 +143,8 @@ list(
all_home_care_extract,
sc_demog_lookup = sc_demog_lookup,
write_to_disk = write_to_disk
)
),
priority = 0.5
),
tar_target(
all_care_home_extract,
Expand All @@ -157,7 +163,8 @@ list(
ch_name_lookup_path = slf_ch_name_lookup_path,
spd_path = spd_path,
write_to_disk = write_to_disk
)
),
priority = 0.5
),
tar_target(
tests_all_care_home,
Expand All @@ -177,7 +184,8 @@ list(
all_sds_extract,
sc_demog_lookup = sc_demog_lookup,
write_to_disk = write_to_disk
)
),
priority = 0.5
),
tar_map(
list(year = years_to_run),
Expand Down

0 comments on commit e8dd458

Please sign in to comment.