Skip to content

Commit 82a8e38

Browse files
authored
Merge pull request #1106 from stan-dev/fix-parallel-processx-conflict
use setenv to avoid parallel-processx-conflict
2 parents 175bfb4 + 0032564 commit 82a8e38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/zzz.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ cmdstanr_knitr_env <- cmdstanr_knitr_env_function_generator(new.env())
9595
}
9696

9797
.onLoad <- function(...) {
98+
# avoid conflict between parallel and processx
99+
Sys.setenv(PROCESSX_NOTIFY_OLD_SIGCHLD = 1)
98100
if (requireNamespace("knitr", quietly = TRUE)) {
99101
cmdstanr_knitr_env(knitr::knit_global())
100102
}

0 commit comments

Comments
 (0)