When trying to install 'hts' on a Ubuntu 18.04.6 LTS AWS server
with R version 3.4.4 using this command
sudo R -e 'install.packages("hts", dependencies = TRUE)'
the installation breaks because RcppEigen is not found
These are the logs
ubuntu@ip-172-31-16-51:~$ sudo R -e 'install.packages("hts", dependencies = TRUE)'
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> install.packages("hts", dependencies = TRUE)
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/hts_6.0.2.tar.gz'
Content type 'application/x-gzip' length 821684 bytes (802 KB)
==================================================
downloaded 802 KB
* installing *source* package ‘hts’ ...
** package ‘hts’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppEigen/include" -fpic -g -O2 -fdebug-prefix-map=/build/r-base-AitvI6/r-base-3.4.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c RcppExports.cpp -o RcppExports.o
RcppExports.cpp:4:10: fatal error: RcppEigen.h: No such file or directory
#include <RcppEigen.h>
^~~~~~~~~~~~~
compilation terminated.
/usr/lib/R/etc/Makeconf:168: recipe for target 'RcppExports.o' failed
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘hts’
* removing ‘/usr/local/lib/R/site-library/hts’
The downloaded source packages are in
‘/tmp/RtmpO7eOeq/downloaded_packages’
Warning message:
In install.packages("hts", dependencies = TRUE) :
installation of package ‘hts’ had non-zero exit status
>
>
When trying to install 'hts' on a Ubuntu 18.04.6 LTS AWS server with R version 3.4.4 using this command
sudo R -e 'install.packages("hts", dependencies = TRUE)'
the installation breaks because RcppEigen is not found
These are the logs