lme4 package installation in R posit workbench

The issue that you are encountering is NOT caused directly by lme4 - it is an issue in the installation of the nloptr package that for some reason cannot ind libRlapack.so. I am not sure what is causing this but I would suggest that the easiest path would be to install nloptr from source .

A complicating factor in your setup is the fact that you are using CentOS 7 which is a linux distribution that is EOL. This will make installation of nloptr a bit more challenging but you may find Installing package nloptr useful for this.

Once you have mastered installing a functional nloptr package, your lme4installation will be much more likely to succeed.