RamiKrispin / TSstudio

Tools for time series analysis and forecasting
https://ramikrispin.github.io/TSstudio/
Other
421 stars 65 forks source link

NOTICE: plan(multiprocess) of future is deprecated #63

Closed HenrikBengtsson closed 1 year ago

HenrikBengtsson commented 3 years ago

Hi.

This is a friendly reminder that plan(multiprocess) of the future package is deprecated since future 1.20.0 (2020-11-03). It will eventually become defunct and removed. The background for this can be found in https://github.com/HenrikBengtsson/future/issues/420.

Your TSstudio package relies on multiprocess, cf. https://github.com/RamiKrispin/TSstudio/search?q=multiprocess.

Please migrate your code to the platform-independent plan(multisession) or the Linux/macOS-specific plan(multicore). If you want to emulate what multiprocess does, you can do something like:

  if (parallelly::supportsMulticore()) {
    oplan <- plan(multicore)
  } else {
    oplan <- plan(multisession)
  }
  on.exit(plan(oplan))

BTW, if you don't already do so, please make sure to undo any plan() you set in your code, as illustrated by the above example. This is needed to guarantee that calling your code won't override settings that the user has set previously. You can read about this in https://future.futureverse.org/reference/plan.html#for-package-developers.

Thank you,

Henrik (maintainer of the future package)

RamiKrispin commented 2 years ago

Thanks @HenrikBengtsson for the reminder. Unfortunately, due to my employer's open-source policies, I am currently blocked from contributing to this project and sadly will have to retire it.

HenrikBengtsson commented 2 years ago

Oh my, wicked. I'm sorry to hear.

Are you allowed to accept a PR (click Merge) if I do one, or is that also against your contract with them? I hate to see FOSS projects with lots of invested time to go to waste for no good reasons like this.

HenrikBengtsson commented 2 years ago

Alternatively to retiring this project, you could also reach out to the R community and ask if someone wants to take over as it as a new maintainer. This happened to many other R packages in the past and CRAN supports transfers.

RamiKrispin commented 2 years ago

Unfortunately, I am also restricted from merging PR, and yes, probably finding a new maintainer would be the best option to keep this project alive.

HenrikBengtsson commented 2 years ago

Hi, have you had any chance to think about an alternative package maintainer. I hate for your package to be removed from CRAN, because you are not allowed to submit an updated version yourself.

HenrikBengtsson commented 1 year ago

Friendly reminder; 'multiprocess' has been deprecated since 2020-10-30.

HenrikBengtsson commented 1 year ago

FYI, future 1.32.0, which makes multiprocess defunct, is now on CRAN.

HenrikBengtsson commented 1 year ago

An update and a follow-up here: future::multiprocess has been deprecated since October 2020, and defunct since March 2023. It will soon be removed from future. When that happens, your package will break (see below). If this doesn't get fixed, your package probably fall of CRAN at some point.

HenrikBengtsson commented 1 year ago

Looks like you figured out a way for updating the package.