Trouble installing nloptr package on R 3.3.0
For me, running CentOS, the missing puzzle piece was this:
sudo yum install nlopt-devel
I was able to solve the problem on my Mac using
$ brew install nlopt
Looking into the issue I noticed that others had reportedly resolved the issue on Ubuntu using
$ sudo apt-get install libnlopt-dev
Apparently you now need to install it outside of R.