Hi,
I am getting error from the devtools::check() function while testing the function example:
* checking examples ... ERROR
Running examples in ‘TSstudio-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: train_model
> ### Title: Train, Test, Evaluate, and Forecast Multiple Time Series
> ### Forecasting Models
> ### Aliases: train_model
>
> ### ** Examples
>
.
.
.
.
----------- FAILURE REPORT --------------
--- failure: length > 1 in coercion to logical ---
--- srcref ---
:
--- package (from environment) ---
TSstudio
--- call from context ---
train_model(input = USgas, methods = methods, train_method = list(partitions = 6,
sample.out = 12, space = 3), horizon = 12, error = "MAPE")
--- call from argument ---
level <= 0 || level > 100
--- R stacktrace ---
where 1: train_model(input = USgas, methods = methods, train_method = list(partitions = 6,
sample.out = 12, space = 3), horizon = 12, error = "MAPE")
--- value of length: 2 type: logical ---
[1] FALSE FALSE
--- function from context ---
Any idea what causing this error? as I am not able to reproduce this error when running the example in a clean environment.
The full look of the error is available here: https://win-builder.r-project.org/p1ik8pV1o6xF/00check.log
Thanks,
Rami