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
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"))