analogously to https://github.com/boost-R/mboost/issues/61
analogously to boost-R/mboost#61