Closed HenrikBengtsson closed 1 year ago
Regarding plan()
, you might want to do something like (non-verified):
fiery_bg_process <- function(..., envir = parent.frame()) {
oplan <- plan(multisession)
on.exit(plan(oplan), add = TRUE)
future(..., envir = envir)
}
and use it as:
AsyncStack <- R6Class('AsyncStack',
inherit = FutureStack,
private = list(
catcher = 'fiery_bg_process'
)
)
Just a friendly reminder about this one
FYI, future 1.32.0 is now on CRAN making multiprocess
is defunct. Your package will begin to produce check errors on CRAN any time soon, and you might get a request to update your package from the CRAN Team.
Hi @HenrikBengtsson , sorry for the late reply and thanks for your persistence on this. I'll see if I can work out a solution for fiery
I see fiery 1.2.0 fixing this is now on CRAN. Thx
Hi. The 'multiprocess' backend has been deprecated since future 1.20.0 (Oct 2020). The fiery package uses it in the code and mentions it in the docs, e.g.
https://github.com/thomasp85/fiery/blob/da9c27fc301c0b922a598785108da02ac58fe657/R/FutureStack.R#L96-L104
Using it produces a deprecation warning:
But this soon become a defunct error. When that happens,
R CMD check
on the fiery package will break:Can you please fix?
PS. This one went under my revdepcheck radar, because it called
multiprocess()
directly. Please avoid that and use the recommendedplan(...)
approach instead. (It might be that we one day will replace all those backend functions with backend configuration objects with the same names)