在debian9中安装软件包后,为什么不能使用Rmpfr?

时间:2019-07-18 00:57:33

标签: r package

我已经通过这种方式在debian9中安装了libmpfr-dev

sudo apt-get install libmpfr-dev

现在进入R。

require("mpfr")

我得到了错误信息:

Loading required package: mpfr
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘mpfr’

如何解决?

sudo apt-get升级r-base r-base-dev

重新输入R:

update.packages(ask = FALSE)
install.packages("Rmpfr")
** preparing package for lazy loading
Creating a generic function for ‘factorial’ from package ‘base’ in package ‘Rmpfr’
Error in rematchDefinition(definition, fdef, mnames, fnames, signature) : 
  methods can add arguments to the generic ‘median’ only if '...' is an argument to the generic
Error : unable to load R code in package ‘Rmpfr’
ERROR: lazy loading failed for package ‘Rmpfr’
* removing ‘/home/debian9/R/x86_64-pc-linux-gnu-library/3.3/Rmpfr’

The downloaded source packages are in
    ‘/tmp/Rtmp0xCAF7/downloaded_packages’
Warning message:
In install.packages("Rmpfr") :
  installation of package ‘Rmpfr’ had non-zero exit status

0 个答案:

没有答案