HenrikBengtsson / future.tests

:nut_and_bolt: R package: future.tests - Test Suite for Future API Backends
https://future.tests.futureverse.org
10 stars 1 forks source link

CRAN: Error: 'identical(Sys.getenv(), state$envs)' is not TRUE #23

Closed HenrikBengtsson closed 1 year ago

HenrikBengtsson commented 1 year ago

R CMD check gives errors on MS Windows CRAN servers for R 4.2.2 and R-devel (at least https://cran.r-project.org/web/checks/check_results_future.tests.html on 2022-11-21):

  > result <- run_test(test)
  Error in evaluate_expr(test$expr, envir = envir, local = FALSE, output = output, :
    identical(Sys.getenv(), old$envvars) is not TRUE
  Calls: run_test -> evaluate_expr -> stopifnot
  Error: 'identical(Sys.getenv(), state$envs)' is not TRUE
  Execution halted

This is due to an internal sanity check and not part of the test suite itself:

$ grep -F 'identical(Sys.getenv(), old$envvars)' -r --include="*.R"  
R/evaluate_expr.R:      stopifnot(identical(Sys.getenv(), old$envvars))
HenrikBengtsson commented 1 year ago

Duplicate of #22