pass configure arguments to install packages in R

后端 未结 1 1384
庸人自扰
庸人自扰 2021-01-18 01:06

I am trying to install a package in R from the CRAN repository. I have to pass a flag at the configure stage, but I can\'t figure out how to do it in

相关标签:
1条回答
  • 2021-01-18 01:47

    I just stumbled upon this problem myself, trying to install udunits2 as a dependency of ggforce. This answer on the R devel mailing list worked in my case: I needed to pass a named character vector to configure.args keyed by the package name. This should would work for your case, then:

    install.packages("Rmpfr",
      configure.args = c(Rmpfr = "--with-mpfr-include=/path/to/mpfr/include"))
    
    0 讨论(0)
提交回复
热议问题