这是因为R版本更新到4之后原因报错;但是你的R版本是3.*的所以会报错,你可以安装老版本的
nloptr nloptr_1.2.2.tar.gz 在R 4.0.3 安装通过
ERROR: configuration failed for package ‘nloptr’ * removing ‘/home/peter/R/x86_64-pc-linux-gnu-library/3.4/nloptr’ ERROR: dependency ‘nloptr’ is not available for package ‘lme4’ * removing ‘/home/peter/R/x86_64-pc-linux-gnu-library/3.4/lme4’
libtool: link: ERROR: no information for variable 'AR' cru .libs/libutil.a .libs/mt19937ar.o .libs/sobolseq.o .libs/timer.o .libs/stop.o .libs/redblack.o .libs/qsort_r.o .libs/rescale.o
checking for ranlib... ERROR: no information for variable 'RANLIB'