I'm trying to install exactextractr in ubuntu 18.04 with Microsoft R but I get this error. Can anyone help me? Thanks
> install.packages("~/R/exactextractr_0.5.1.tar.gz", repos = NULL, type = "source")
Installing package into ‘/home/cappannonno/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
Microsoft R Open 4.0.2
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2020 Microsoft Corporation
Using the Intel MKL for parallel mathematical computing (using 2 cores).
Default CRAN mirror snapshot taken on 2020-07-16.
See: https://mran.microsoft.com/.
* installing *source* package ‘exactextractr’ ...
** package ‘exactextractr’ successfully unpacked and MD5 sums checked
** using staged installation
configure: exactextractr: 0.5.1
configure: error: "No C++14 compiler identified by R CMD config CXX14"
ERROR: configuration failed for package ‘exactextractr’
* removing ‘/home/cappannonno/R/x86_64-pc-linux-gnu-library/4.0/exactextractr’
Warning in install.packages :
installation of package ‘/home/cappannonno/R/exactextractr_0.5.1.tar.gz’ had non-zero exit status
Sounds like an issue with your Microsoft R install. You can try defining CXX14 = gcc in ~/.R/Makevars or wherever Microsoft R looks for this sort of thing.
I'm trying to install exactextractr in ubuntu 18.04 with Microsoft R but I get this error. Can anyone help me? Thanks