cmake版本过低导致安装R包nloptr失败

CMake 3.2 or higher is required.  You are running version 2.8.12.2
--
> install.packages("nloptr")
trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/nloptr_2.0.3.tar.gz'
Content type 'application/octet-stream' length 2219877 bytes (2.1 MB)
==================================================
downloaded 2.1 MB

* installing *source* package ‘nloptr’ ...
** package ‘nloptr’ 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 the compiler supports GNU C++... yes
checking whether g++ -std=gnu++11 accepts -g... yes
checking for g++ -std=gnu++11 option to enable C++11 features... none needed
checking how to run the C++ preprocessor... g++ -std=gnu++11 -E
checking whether the compiler supports GNU C++... (cached) yes
checking whether g++ -std=gnu++11 accepts -g... (cached) yes
checking for g++ -std=gnu+

你可能感兴趣的:(R,c++,开发语言)