Running examples in ‘tsintermittent-Ex.R’ failed
The error most likely occurred in:

> ### Name: crost
> ### Title: Croston's method and variants
> ### Aliases: crost
> ### Keywords: ~croston ~crost
> 
> ### ** Examples
> 
> crost(ts.data1,outplot=TRUE)
Error in nop > 2 || nop < 1 : 'length = 2' in coercion to 'logical(1)'
Calls: crost
Execution halted
Running examples in ‘tsintermittent-Ex.R’ failed
The error most likely occurred in:

> ### Name: crost
> ### Title: Croston's method and variants
> ### Aliases: crost
> ### Keywords: ~croston ~crost
> 
> ### ** Examples
> 
> crost(ts.data1,outplot=TRUE)
Error in nop > 2 || nop < 1 : 'length = 2' in coercion to 'logical(1)'
Calls: crost
Execution halted