I am using pbmclapply in pbmcapply package, to do parallel processing in my R function. Below is the line that is malfunctioning:
> LYG1b <- pbmclapply(lygh171, FUN = auto.arima, mc.cores = detectCores())
auto.arima is a function from the "forecast" package. The length of lygh171 is 2435.
 "Error in ts(x) : 'ts' object must have one or more observations\n"
<simpleError in ts(x): 'ts' object must have one or more observations>