This function returns the indice of the last validated step before the current step.
Examples
history <- InitializeHistory()
Add2History(history, "Example step", "First sub-step", "my param", "THE value")
#> Step Substep Parameter Value
#> 1 Example step First sub-step my param THE value