Skip to content

Commit

Permalink
fix bugs in anonymous function
Browse files Browse the repository at this point in the history
  • Loading branch information
lizihao-anu committed Oct 15, 2024
1 parent 52b8e22 commit 6e08c8a
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions _targets.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ list(
# to avoid conflicts of writing to the same file at the same time
(\(it_chi_deaths_data, tests_sc_demog_lookup) {
process_tests_it_chi_deaths(it_chi_deaths_data)
}(it_chi_deaths_data, tests_sc_demog_lookup))
})(it_chi_deaths_data, tests_sc_demog_lookup)
),
tar_target(
source_gp_lookup,
Expand All @@ -105,7 +105,7 @@ list(
tests_source_gp_lookup,
(\(source_gp_lookup, tests_it_chi_deaths) {
process_tests_lookup_gpprac(source_gp_lookup)
}(source_gp_lookup, tests_it_chi_deaths))
})(source_gp_lookup, tests_it_chi_deaths)
),
tar_target(
source_pc_lookup,
Expand All @@ -122,7 +122,7 @@ list(
tests_source_pc_lookup,
(\(source_pc_lookup, tests_source_gp_lookup) {
process_tests_lookup_pc(source_pc_lookup)
}(source_pc_lookup, tests_source_gp_lookup))
})(source_pc_lookup, tests_source_gp_lookup)
),
### Cost Lookups ----
tar_target(ch_cost_lookup, process_costs_ch_rmd(), priority = 0.8),
Expand Down Expand Up @@ -152,7 +152,7 @@ list(
tests_sc_all_at,
(\(all_at, tests_source_pc_lookup) {
process_tests_sc_all_at_episodes(all_at)
}(all_at, tests_source_pc_lookup))
})(all_at, tests_source_pc_lookup)
),
tar_target(
all_home_care_extract,
Expand All @@ -176,7 +176,7 @@ list(
tests_sc_all_home_care,
(\(all_home_care, tests_sc_all_at) {
process_tests_sc_all_hc_episodes(all_home_care)
}(all_home_care, tests_sc_all_at))
})(all_home_care, tests_sc_all_at)
),
tar_target(
all_care_home_extract,
Expand Down Expand Up @@ -210,7 +210,7 @@ list(
tests_all_care_home,
(\(all_care_home, tests_sc_all_home_care) {
process_tests_sc_all_ch_episodes(all_care_home)
}(all_care_home, tests_sc_all_home_care))
})(all_care_home, tests_sc_all_home_care)
),
tar_target(
all_sds_extract,
Expand All @@ -234,7 +234,7 @@ list(
tests_sc_all_sds,
(\(all_sds, tests_all_care_home) {
process_tests_sc_all_sds_episodes(all_sds)
}(all_sds, tests_all_care_home))
})(all_sds, tests_all_care_home)
),

## Phase II, year specific ----
Expand Down Expand Up @@ -362,7 +362,7 @@ list(
source_ae_extract,
year
)
}(source_ae_extract, year, tests_source_acute_extract))
})(source_ae_extract, year, tests_source_acute_extract)
),
tar_target(source_cmh_extract, process_extract_cmh(
cmh_data,
Expand All @@ -377,7 +377,7 @@ list(
source_cmh_extract,
year
)
}(source_cmh_extract, year, tests_source_ae_extract))
})(source_cmh_extract, year, tests_source_ae_extract)
),
tar_target(source_dd_extract, process_extract_delayed_discharges(
dd_data,
Expand All @@ -392,7 +392,7 @@ list(
source_dd_extract,
year
)
}(source_dd_extract, year, tests_source_cmh_extract))
})(source_dd_extract, year, tests_source_cmh_extract)
),
tar_target(source_dn_extract, process_extract_district_nursing(
dn_data,
Expand All @@ -408,7 +408,7 @@ list(
source_dn_extract,
year
)
}(source_dn_extract, year, tests_source_dd_extract))
})(source_dn_extract, year, tests_source_dd_extract)
),
tar_target(
source_homelessness_extract,
Expand All @@ -427,7 +427,7 @@ list(
source_homelessness_extract,
year
)
}(source_homelessness_extract, year, tests_source_dn_extract))
})(source_homelessness_extract, year, tests_source_dn_extract)
),
tar_target(source_ltc_lookup, process_lookup_ltc(
ltc_data,
Expand All @@ -442,7 +442,7 @@ list(
source_ltc_lookup,
year
)
}(source_ltc_lookup, year, tests_source_homelessness_extract))
})(source_ltc_lookup, year, tests_source_homelessness_extract)
),
tar_target(source_maternity_extract, process_extract_maternity(
maternity_data,
Expand All @@ -457,7 +457,7 @@ list(
source_maternity_extract,
year
)
}(source_maternity_extract, year, tests_ltc))
})(source_maternity_extract, year, tests_ltc)
),
tar_target(
source_mental_health_extract,
Expand All @@ -475,7 +475,7 @@ list(
source_mental_health_extract,
year
)
}(source_mental_health_extract, year, tests_source_maternity_extract))
})(source_mental_health_extract, year, tests_source_maternity_extract)
),
# tar_target(source_nrs_deaths_extract, process_extract_nrs_deaths(
# nrs_deaths_data,
Expand All @@ -499,7 +499,7 @@ list(
source_nrs_deaths_extract,
year
)
}(source_nrs_deaths_extract, year, tests_source_mental_health_extract))
})(source_nrs_deaths_extract, year, tests_source_mental_health_extract)
),
tar_target(source_ooh_extract, process_extract_gp_ooh(
year,
Expand All @@ -515,7 +515,7 @@ list(
source_ooh_extract,
year
)
}(source_ooh_extract, year, tests_source_nrs_deaths_extract))
})(source_ooh_extract, year, tests_source_nrs_deaths_extract)
),
tar_target(source_outpatients_extract, process_extract_outpatients(
outpatients_data,
Expand All @@ -530,7 +530,7 @@ list(
source_outpatients_extract,
year
)
}(source_outpatients_extract, year, tests_source_ooh_extract))
})(source_outpatients_extract, year, tests_source_ooh_extract)
),
tar_target(source_prescribing_extract, process_extract_prescribing(
prescribing_data,
Expand All @@ -545,7 +545,7 @@ list(
source_prescribing_extract,
year
)
}(source_prescribing_extract, year, tests_source_outpatients_extract))
})(source_prescribing_extract, year, tests_source_outpatients_extract)
),
### Target process year specific social care ----
tar_target(
Expand All @@ -568,7 +568,7 @@ list(
tests_sc_client_lookup,
(\(sc_client_lookup, year, tests_prescribing){
process_tests_sc_client_lookup(sc_client_lookup, year = year)
}(sc_client_lookup, year, tests_prescribing))
})(sc_client_lookup, year, tests_prescribing)
),
tar_target(
source_sc_alarms_tele,
Expand All @@ -586,7 +586,7 @@ list(
data = source_sc_alarms_tele,
year = year
)
}(source_sc_alarms_tele, year, tests_sc_client_lookup))
})(source_sc_alarms_tele, year, tests_sc_client_lookup)
),
tar_target(
source_sc_care_home,
Expand All @@ -605,7 +605,7 @@ list(
data = source_sc_care_home,
year = year
)
}(source_sc_care_home, year, tests_alarms_telecare))
})(source_sc_care_home, year, tests_alarms_telecare)
),
tar_target(
source_sc_home_care,
Expand All @@ -623,7 +623,7 @@ list(
data = source_sc_home_care,
year = year
)
}(source_sc_home_care, year, tests_care_home))
})(source_sc_home_care, year, tests_care_home)
),
tar_target(
source_sc_sds,
Expand All @@ -641,7 +641,7 @@ list(
data = source_sc_sds,
year = year
)
}(source_sc_sds, year, tests_home_care))
})(source_sc_sds, year, tests_home_care)
),
tar_target(
slf_deaths_lookup,
Expand Down

0 comments on commit 6e08c8a

Please sign in to comment.