From 0ebe16ddbbdaab6b66f4f06e3c752b3421852637 Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Thu, 21 Mar 2024 17:09:21 -0400 Subject: [PATCH] remove use of \() anonymous function --- R/args.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/args.R b/R/args.R index a1b962c2..3b63f13a 100644 --- a/R/args.R +++ b/R/args.R @@ -1058,8 +1058,8 @@ process_init.draws <- function(init, num_procs, model_variables = NULL, draws <- posterior::resample_draws(draws, ndraws = num_procs, method ="simple_no_replace") draws_rvar = posterior::as_draws_rvars(draws) - inits = lapply(1:num_procs, \(draw_iter) { - init_i = lapply(variable_names, \(var_name) { + inits = lapply(1:num_procs, function(draw_iter) { + init_i = lapply(variable_names, function(var_name) { x = drop(posterior::draws_of(drop( posterior::subset_draws(draws_rvar[[var_name]], draw=draw_iter)))) return(x)