I have the latest version of R studio and still receiving this error. I already have binary version, but it does not include functions that i need.
This is the error message:
There is a binary version available but the source version is later:
binary source needs_compilation
stratEst 0.1.2 1.1.4 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
installing the source package ‘stratEst’
trying URL 'https://cran.rstudio.com/src/contrib/stratEst_1.1.4.tar.gz'
Content type 'application/x-gzip' length 809764 bytes (790 KB)
downloaded 790 KB
- installing source package ‘stratEst’ ...
** package ‘stratEst’ successfully unpacked and MD5 sums checked
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 clang++ accepts -g... yes
checking how to run the C++ preprocessor... clang++ -E
checking for macOS... found
configure: WARNING: OpenMP unavailable and turned off.
configure: creating ./config.status
config.status: creating src/Makevars
** libs
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/Rcpp/include" -I"/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include" -I/usr/local/include -DARMA_DONT_USE_OPENMP -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:4:
In file included from /Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/RcppArmadillo.h:29:
In file included from /Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/RcppArmadilloForward.h:48:
In file included from /Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo:23:
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/compiler_check.hpp:72:4: error: "*** C++11 compiler required; enable C++11 mode in your compiler, or use an earlier version of Armadillo"
#error "*** C++11 compiler required; enable C++11 mode in your compiler, or use an earlier version of Armadillo"
^
In file included from RcppExports.cpp:4:
In file included from /Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/RcppArmadillo.h:29:
In file included from /Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/RcppArmadilloForward.h:48:
In file included from /Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo:113:
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:152:12: error: unknown type name 'constexpr'
static constexpr bool is_row = false;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:153:12: error: unknown type name 'constexpr'
static constexpr bool is_col = false;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:154:12: error: unknown type name 'constexpr'
static constexpr bool is_xvec = false;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:164:12: error: unknown type name 'constexpr'
static constexpr bool is_row = false;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:165:12: error: unknown type name 'constexpr'
static constexpr bool is_col = false;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:166:12: error: unknown type name 'constexpr'
static constexpr bool is_xvec = true;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:176:12: error: unknown type name 'constexpr'
static constexpr bool is_row = false;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:177:12: error: unknown type name 'constexpr'
static constexpr bool is_col = true;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:178:12: error: unknown type name 'constexpr'
static constexpr bool is_xvec = false;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:188:12: error: unknown type name 'constexpr'
static constexpr bool is_row = true;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:189:12: error: unknown type name 'constexpr'
static constexpr bool is_col = false;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:190:12: error: unknown type name 'constexpr'
static constexpr bool is_xvec = false;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:200:12: error: unknown type name 'constexpr'
static constexpr bool is_row = T1::is_row;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:201:12: error: unknown type name 'constexpr'
static constexpr bool is_col = T1::is_col;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:202:12: error: unknown type name 'constexpr'
static constexpr bool is_xvec = T1::is_xvec;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:212:12: error: unknown type name 'constexpr'
static constexpr bool is_row = false;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:213:12: error: unknown type name 'constexpr'
static constexpr bool is_col = false;
^
/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:214:12: error: unknown type name 'constexpr'
static constexpr bool is_xvec = false;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘stratEst’ - removing ‘/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/stratEst’
- restoring previous ‘/Users/valeriiahanicheva-kiiashko/Library/R/3.5/library/stratEst’
Warning in install.packages :
installation of package ‘stratEst’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/98/71dq24s153zdndqkh1760jsm0000gn/T/RtmpI1d0Vw/downloaded_packages’
Any insight as to why these issues are occurring would be super appreciated!! Thanks!