Unable to install "uplift" package

Hello everyone,

My OS is Ubuntu 18.04.2. Versions of Rstudio and R are 1.1.453 and 3.6.1 respectively. When I am trying to install uplift package I am getting following errors. (I am not also able to install devtools for 3.6 R version.)

> install.packages("uplift")
Installing package into ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘plyr’, ‘reshape2’, ‘scales’, ‘htmlwidgets’, ‘ggplot2’, ‘htmlTable’, ‘viridis’, ‘Hmisc’, ‘RcppArmadillo’, ‘tables’, ‘penalized’

trying URL 'https://cloud.r-project.org/src/contrib/plyr_1.8.4.tar.gz'
Content type 'application/x-gzip' length 392451 bytes (383 KB)
==================================================
downloaded 383 KB

trying URL 'https://cloud.r-project.org/src/contrib/reshape2_1.4.3.tar.gz'
Content type 'application/x-gzip' length 36405 bytes (35 KB)
==================================================
downloaded 35 KB

trying URL 'https://cloud.r-project.org/src/contrib/scales_1.0.0.tar.gz'
Content type 'application/x-gzip' length 299262 bytes (292 KB)
==================================================
downloaded 292 KB

trying URL 'https://cloud.r-project.org/src/contrib/htmlwidgets_1.3.tar.gz'
Content type 'application/x-gzip' length 866548 bytes (846 KB)
==================================================
downloaded 846 KB

trying URL 'https://cloud.r-project.org/src/contrib/ggplot2_3.2.0.tar.gz'
Content type 'application/x-gzip' length 3193995 bytes (3.0 MB)
==================================================
downloaded 3.0 MB

trying URL 'https://cloud.r-project.org/src/contrib/htmlTable_1.13.1.tar.gz'
Content type 'application/x-gzip' length 175601 bytes (171 KB)
==================================================
downloaded 171 KB

trying URL 'https://cloud.r-project.org/src/contrib/viridis_0.5.1.tar.gz'
Content type 'application/x-gzip' length 1906320 bytes (1.8 MB)
==================================================
downloaded 1.8 MB

trying URL 'https://cloud.r-project.org/src/contrib/Hmisc_4.2-0.tar.gz'
Content type 'application/x-gzip' length 732731 bytes (715 KB)
==================================================
downloaded 715 KB

trying URL 'https://cloud.r-project.org/src/contrib/RcppArmadillo_0.9.600.4.0.tar.gz'
Content type 'application/x-gzip' length 1360028 bytes (1.3 MB)
==================================================
downloaded 1.3 MB

trying URL 'https://cloud.r-project.org/src/contrib/tables_0.8.8.tar.gz'
Content type 'application/x-gzip' length 373100 bytes (364 KB)
==================================================
downloaded 364 KB

trying URL 'https://cloud.r-project.org/src/contrib/penalized_0.9-51.tar.gz'
Content type 'application/x-gzip' length 432433 bytes (422 KB)
==================================================
downloaded 422 KB

trying URL 'https://cloud.r-project.org/src/contrib/uplift_0.3.5.tar.gz'
Content type 'application/x-gzip' length 36337 bytes (35 KB)
==================================================
downloaded 35 KB

* installing *source* package ‘plyr’ ...
** package ‘plyr’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include"   -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-p1m1mT/r-base-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
In file included from /usr/local/lib/R/site-library/Rcpp/include/Rcpp.h:77:0,
                 from RcppExports.cpp:4:
/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:57: error: ‘::Rf_pythag’ has not been declared
     inline double pythag(double a, double b) { return ::Rf_pythag(a, b); }
                                                         ^~~~~~~~~
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/Rmath.h:222:57: note: suggested alternative: ‘pythag’
     inline double pythag(double a, double b) { return ::Rf_pythag(a, b); }
                                                         ^~~~~~~~~
                                                         pythag
/usr/lib/R/etc/Makeconf:176: recipe for target 'RcppExports.o' failed
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘plyr’
* removing ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6/plyr’
Warning in install.packages :
  installation of package ‘plyr’ had non-zero exit status
* installing *source* package ‘scales’ ...
** package ‘scales’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include"   -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-p1m1mT/r-base-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
In file included from /usr/local/lib/R/site-library/Rcpp/include/Rcpp.h:77:0,
                 from RcppExports.cpp:4:
/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:57: error: ‘::Rf_pythag’ has not been declared
     inline double pythag(double a, double b) { return ::Rf_pythag(a, b); }
                                                         ^~~~~~~~~
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/Rmath.h:222:57: note: suggested alternative: ‘pythag’
     inline double pythag(double a, double b) { return ::Rf_pythag(a, b); }
                                                         ^~~~~~~~~
                                                         pythag
/usr/lib/R/etc/Makeconf:176: recipe for target 'RcppExports.o' failed
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘scales’
* removing ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6/scales’
Warning in install.packages :
  installation of package ‘scales’ had non-zero exit status
* installing *source* package ‘htmlwidgets’ ...
** package ‘htmlwidgets’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error: package ‘htmltools’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
Execution halted
ERROR: lazy loading failed for package ‘htmlwidgets’
* removing ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6/htmlwidgets’
Warning in install.packages :
  installation of package ‘htmlwidgets’ had non-zero exit status
* installing *source* package ‘RcppArmadillo’ ...
** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
** using staged installation
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ -std=gnu++11 accepts -g... yes
checking how to run the C++ preprocessor... g++ -std=gnu++11 -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ -std=gnu++11 accepts -g... (cached) yes
checking whether g++ version is sufficient... yes, with OpenMP as version 7.4.0
checking for macOS... checking LAPACK_LIBS... system LAPACK found
checking for OpenMP... found and suitable
configure: creating ./config.status
config.status: creating inst/include/RcppArmadilloConfigGenerated.h
config.status: creating src/Makevars
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include"  -I../inst/include -fopenmp -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-p1m1mT/r-base-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RcppArmadillo.cpp -o RcppArmadillo.o
In file included from /usr/local/lib/R/site-library/Rcpp/include/Rcpp.h:77:0,
                 from ../inst/include/RcppArmadillo.h:34,
                 from RcppArmadillo.cpp:22:
/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:57: error: ‘::Rf_pythag’ has not been declared
     inline double pythag(double a, double b) { return ::Rf_pythag(a, b); }
                                                         ^~~~~~~~~
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/Rmath.h:222:57: note: suggested alternative: ‘pythag’
     inline double pythag(double a, double b) { return ::Rf_pythag(a, b); }
                                                         ^~~~~~~~~
                                                         pythag
/usr/lib/R/etc/Makeconf:176: recipe for target 'RcppArmadillo.o' failed
make: *** [RcppArmadillo.o] Error 1
ERROR: compilation failed for package ‘RcppArmadillo’
* removing ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6/RcppArmadillo’
Warning in install.packages :
  installation of package ‘RcppArmadillo’ had non-zero exit status
ERROR: dependency ‘plyr’ is not available for package ‘reshape2’
* removing ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6/reshape2’
Warning in install.packages :
  installation of package ‘reshape2’ had non-zero exit status
ERROR: dependency ‘htmlwidgets’ is not available for package ‘htmlTable’
* removing ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6/htmlTable’
Warning in install.packages :
  installation of package ‘htmlTable’ had non-zero exit status
ERROR: dependency ‘RcppArmadillo’ is not available for package ‘penalized’
* removing ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6/penalized’
Warning in install.packages :
  installation of package ‘penalized’ had non-zero exit status
ERROR: dependencies ‘reshape2’, ‘scales’ are not available for package ‘ggplot2’
* removing ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6/ggplot2’
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status
ERROR: dependency ‘ggplot2’ is not available for package ‘viridis’
* removing ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6/viridis’
Warning in install.packages :
  installation of package ‘viridis’ had non-zero exit status
ERROR: dependencies ‘ggplot2’, ‘htmlTable’, ‘viridis’ are not available for package ‘Hmisc’
* removing ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6/Hmisc’
Warning in install.packages :
  installation of package ‘Hmisc’ had non-zero exit status
ERROR: dependency ‘Hmisc’ is not available for package ‘tables’
* removing ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6/tables’
Warning in install.packages :
  installation of package ‘tables’ had non-zero exit status
ERROR: dependencies ‘tables’, ‘penalized’ are not available for package ‘uplift’
* removing ‘/home/irshad/R/x86_64-pc-linux-gnu-library/3.6/uplift’
Warning in install.packages :
  installation of package ‘uplift’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpOUxsTh/downloaded_packages’

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.