Skip to content

Commit

Permalink
Use default iteration for comp_rel targets
Browse files Browse the repository at this point in the history
Signed-off-by: Liang Zhang <psychelzh@outlook.com>
  • Loading branch information
psychelzh committed Apr 16, 2024
1 parent 17b8f86 commit 2550c54
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
3 changes: 1 addition & 2 deletions R/tar_factories.R
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,7 @@ tar_calibrate_g <- function(expr, data, use_pairs, ...,
) |>
list_rbind_tar_batches(names_to = "id_pairs")
),
chr("fit_g"),
iteration = "list"
chr("fit_g")
),
tarchetypes::tar_rep2_raw(
chr("scores_g"),
Expand Down
22 changes: 10 additions & 12 deletions _scripts/resample_g_factor.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,23 +105,21 @@ list(
tarchetypes::tar_combine(
comp_rel_g,
branches_g$comp_rel_g,
command = list(!!!.x) |>
lapply(bind_rows) |>
bind_rows_meta(
.names = names(config_vars),
.prefix = "comp_rel_g"
),
command = bind_rows_meta(
!!!.x,
.names = names(config_vars),
.prefix = "comp_rel_g"
),
deployment = "main"
),
tarchetypes::tar_combine(
cor_rapm,
branches_g$cor_rapm,
command = list(!!!.x) |>
lapply(bind_rows) |>
bind_rows_meta(
.names = names(config_vars),
.prefix = "cor_rapm"
),
command = bind_rows_meta(
!!!.x,
.names = names(config_vars),
.prefix = "cor_rapm"
),
deployment = "main"
),
tarchetypes::tar_combine(
Expand Down

0 comments on commit 2550c54

Please sign in to comment.