Helper to call certain step function of a monitor.
This funtions serves to call a specific monitor step.
callMonitor(monitor, step, envir = parent.frame())
monitor
: [CMAES_monitor
]
Monitor.
step
: [character(1)
]
One of before, step, after.
envir
: [environment
]
The environment to pass.