Add --vanilla flag to r build system (#22166)

Unlike the other commands of the `R CMD` interface, the `INSTALL` command
will read `Renviron` files. This can potentially break builds of r-
packages, depending on what is set in the `Renviron` file. This PR adds
the `--vanilla` flag to ensure that neither `Rprofile` nor `Renviron` files
are read during Spack builds of r- packages.
This commit is contained in:
Glenn Johnson
2021-03-08 16:53:12 -06:00
committed by GitHub
parent 68d5f348e5
commit ccc7ed0af9

View File

@@ -84,6 +84,7 @@ def install(self, spec, prefix):
config_vars = self.configure_vars()
args = [
'--vanilla',
'CMD',
'INSTALL'
]