R Cellchat包运行netClustering,反馈Strategy 'multiprocess' is defunct in future

问题遇到的现象和发生背景

在R包Cellchat中运行cellchat <- netClustering(cellchat, type = "functional"),反馈Error: Strategy 'multiprocess' is defunct in future (>= 1.32.0) [2023-03-06]. Instead, explicitly specify either 'multisession' (recommended) or 'multicore'.

代码

cellchat <- netClustering(cellchat, type = "functional")

运行结果及详细报错内容

Error: Strategy 'multiprocess' is defunct in future (>= 1.32.0) [2023-03-06]. Instead, explicitly specify either 'multisession' (recommended) or 'multicore'.

我试过

library(future)
plan(multisession)
cellchat_clustering <- netClustering(cellchat, type="functional")
仍然是同样的报错

如果不需要多线程,可以试试添加do.parallel = FALSE参数,cellchat_clustering <- netClustering(cellchat, type = "functional",do.parallel = FALSE)

完整代码发过来