Hi, I am having similar problems at reinstalling lme4 and ggplot like below:
"""
install.packages('lme4')
Installing package into ‘/home/lsun/R_libs’
(as ‘lib’ is unspecified)
trying URL 'http://cran.cnr.berkeley.edu/src/contrib/lme4_1.1-17.tar.gz'
Content type 'application/x-gzip' length 4103343 bytes (3.9 MB)
==================================================
downloaded 3.9 MB
.Rprofile: Setting cran repositoryn* installing source package ‘lme4’ ...
** package ‘lme4’ successfully unpacked and MD5 sums checked
** libs
g++ -I"/usr/local/lib/R/include" -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/home/lsun/R_libs/RcppEigen/include" -I/usr/local/include -DNDEBUG -DEIGEN_DONT_VECTORIZE -fpic -g -O2 -c external.cpp -o external.o
In file included from /usr/local/lib/R/site-library/Rcpp/include/Rcpp.h:77:0,
from /home/lsun/R_libs/RcppEigen/include/RcppEigen.h:26,
from predModule.h:12,
from external.cpp:8:
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/Rmath.h: In function ‘double R::pythag(double, double)’:
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/Rmath.h:222:55: error: ‘::Rf_pythag’ has not been declared
inline double pythag(double a, double b) { return ::Rf_pythag(a, b); }
^
make: *** [external.o] Error 1
ERROR: compilation failed for package ‘lme4’
- removing ‘/home/lsun/R_libs/lme4’
- restoring previous ‘/home/lsun/R_libs/lme4’
The downloaded source packages are in
‘/tmp/RtmpRsM9YS/downloaded_packages’
Warning message:
In install.packages("lme4") :
installation of package ‘lme4’ had non-zero exit status
"""
Any idea? Thanks!