R optim l bfgs b. The package lbfgsb3 wrapped the updated code using a .