mlr: function apply invoked with 4 arguments; expected 2
