future::plan(): better approach + don't use 'transparent'
HenrikBengtsson opened this issue · 3 comments
HenrikBengtsson commented
Hi,
I see that you use for instance:
Lines 626 to 632 in 95e0b74
Please use the following instead:
if (parplan) {
oplan <- future::plan(strategy = future::multisession)
on.exit(plan(oplan), add = TRUE)
}
This is the proper way to do it, cf. help("plan", package = "future")
. It also avoids using transparent
, which should not be used in package code and will eventually be deprecated.
alexpkeil1 commented
Fixed in 5519045
HenrikBengtsson commented
FYI, transparent
is also used in the vignette, cf. https://github.com/alexpkeil1/qgcomp/search?q=transparent
alexpkeil1 commented
Fixed in e742d51