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

TEST: Assert that resetting R options doesn't break data.table in persistent workers #20

Closed HenrikBengtsson closed 1 year ago

HenrikBengtsson commented 2 years ago

From https://github.com/HenrikBengtsson/future/issues/609#issuecomment-1112349210:

library(data.table)
#> data.table 1.14.2 using 4 threads (see ?getDTthreads).  Latest news: r-datatable.com
library(future)
plan(multisession, workers = 2)

f <- future(data.table())
v <- value(f)
print(v)
#> Null data.table (0 rows and 0 cols)

f <- future(data.table())
v <- value(f)
#> Error in setalloccol(ans) : verbose must be TRUE or FALSE

Happens with future 1.25.0. Will be fixed in future 1.26.0.

HenrikBengtsson commented 2 years ago

Add tests for also ff, cf. https://github.com/HenrikBengtsson/future/discussions/621