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

> ### Name: SARAHPlus
> ### Title: Stochastic Recursive Gradient Algorithm+ (SARAH+) Method
> ###   Learning Function
> ### Aliases: SARAHPlus
> 
> ### ** Examples
> 
> ##################################
> ## Learning and Build Model with SARAH+
> ## load R Package data
> data(gradDescentRData)
> ## get z-factor data
> dataSet <- gradDescentRData$CompressilbilityFactor
> ## split dataset
> splitedDataSet <- splitData(dataSet)
> ## build model with SARAH+
> SARAHPlusmodel <- SARAHPlus(splitedDataSet$dataTrain)
Error in ((abs(colSums(gradient)/3))^2) > (gammaS * ((abs(colSums(firstGradient)/3))^2)) &&  : 
  'length = 3' in coercion to 'logical(1)'
Calls: SARAHPlus
Execution halted
Running examples in ‘gradDescent-Ex.R’ failed
The error most likely occurred in:

> ### Name: SARAHPlus
> ### Title: Stochastic Recursive Gradient Algorithm+ (SARAH+) Method
> ###   Learning Function
> ### Aliases: SARAHPlus
> 
> ### ** Examples
> 
> ##################################
> ## Learning and Build Model with SARAH+
> ## load R Package data
> data(gradDescentRData)
> ## get z-factor data
> dataSet <- gradDescentRData$CompressilbilityFactor
> ## split dataset
> splitedDataSet <- splitData(dataSet)
> ## build model with SARAH+
> SARAHPlusmodel <- SARAHPlus(splitedDataSet$dataTrain)
Error in ((abs(colSums(gradient)/3))^2) > (gammaS * ((abs(colSums(firstGradient)/3))^2)) &&  : 
  'length = 3' in coercion to 'logical(1)'
Calls: SARAHPlus
Execution halted