I have an R function as below:
R
## Load packages and prepare multicore process library(forecast) library(future.apply) plan(multisession) library(