在Windows 10上安装nloptr 1.2.1版:错误#include“ nlopt.h”

时间:2020-09-17 19:33:10

标签: r windows-10 devtools

我需要在Windows 10上安装nloptr版本1.2.1。这是我的代码:

library("devtools")
install_version("nloptr", version = "1.2.1", repos = "http://cran.us.r-project.org")

这是错误消息的摘录:

init_nloptr.c:35:10: fatal error: nlopt.h: No such file or directory
 #include "nlopt.h"
          ^~~~~~~~~
compilation terminated.

有工作吗?

0 个答案:

没有答案