Skip to content

Commit

Permalink
Don't change the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Sep 24, 2024
1 parent 7e2cbf4 commit 92a815c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/runner-callr.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ monty_runner_callr <- function(n_workers, progress = NULL) {
return()
}
chain_id <- pending[[1]]
r_env <- c(callr::rcmd_safe_env(), MONTY_PROGRESS_SIMPLE = "TRUE")
env$sessions[[session_id]] <- callr::r_bg(
function(id, path) monty::monty_sample_manual_run(id, path, "simple"),
list(chain_id, env$path), env = r_env)
list(chain_id, env$path))
env$target[[session_id]] <- chain_id
env$status[[chain_id]] <- "running"
}
Expand Down

0 comments on commit 92a815c

Please sign in to comment.