Skip to content

Commit

Permalink
remove use of \() anonymous function
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Mar 21, 2024
1 parent a89f31f commit 0ebe16d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/args.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0ebe16d

Please sign in to comment.