R package for trust region optimization