Skip to content

Commit

Permalink
reloo: also pass 'cores' to 'update'
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Mar 12, 2021
1 parent 0d163dc commit 9b72e82
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/reloo.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,14 @@ reloo.brmsfit <- function(x, loo, k_threshold = 0.7, newdata = NULL,
# split dots for use in log_lik and update
dots <- list(...)
ll_arg_names <- arg_names("log_lik")
ll_args <- dots[intersect(names(dots), ll_arg_names)]
ll_arg_names <- intersect(names(dots), ll_arg_names)
ll_args <- dots[ll_arg_names]
ll_args$allow_new_levels <- TRUE
ll_args$resp <- resp
ll_args$combine <- TRUE
up_args <- dots[setdiff(names(dots), ll_arg_names)]
# cores is used in both log_lik and update
up_arg_names <- setdiff(names(dots), setdiff(ll_arg_names, "cores"))
up_args <- dots[up_arg_names]
up_args$refresh <- 0

.reloo <- function(j) {
Expand Down

0 comments on commit 9b72e82

Please sign in to comment.