Skip to content

Commit

Permalink
Throw a warning from forked evaluators that behavior is inconsistent …
Browse files Browse the repository at this point in the history
…on Mac/Windows (#644)
  • Loading branch information
gadenbuie authored Jan 24, 2022
1 parent ad92106 commit b3df3db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/evaluators.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ setup_forked_evaluator_factory <- function(max_forked_procs){
running_exercises <- 0

function(expr, timelimit, ...) {
if (is_macos()) {
rlang::warn("Forked evaluators may not work as expected on MacOS")
} else if (is_windows()) {
rlang::warn("Forked evaluators may not work as expected on Windows")
}

# closure object to track job, start time and result
self <- list()
Expand Down

0 comments on commit b3df3db

Please # to comment.