install.packages("Rmpfr")之后,我得到这个错误

configure: error: Header file mpfr.h not found; maybe use
--with-mpfr-include=INCLUDE_PATH
ERROR: configuration failed for package ‘Rmpfr’

我在没有成功的终端中输入了建议--with-mpfr-include=INCLUDE_PATH

最佳答案

在这里看:https://github.com/cran/Rmpfr

您首先必须安装Dependend库。

sudo apt-get install libmpfr-dev
sudo su - -c "R -e \"install.packages('Rmpfr', repos='http://cran.rstudio.com/')\""

从控制台而不是R内安装R-Packages也是更好的解决方案,因为计算机上的每个用户都可以访问该软件包。否则,它将只是在您的个人图书馆中。

08-24 12:24