mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 13:00:10 -06:00
enforce binary installs also for dependencies of R packages
Similar problem seems to be found in https://github.com/r-lib/devtools/issues/1724
This commit is contained in:
@@ -158,7 +158,7 @@ def _inline_r_setup(code: str) -> str:
|
||||
only be configured via R options once R has started. These are set here.
|
||||
"""
|
||||
with_option = f"""\
|
||||
options(install.packages.compile.from.source = "never")
|
||||
options(install.packages.compile.from.source = "never", pkgType = "binary")
|
||||
{code}
|
||||
"""
|
||||
return with_option
|
||||
|
||||
Reference in New Issue
Block a user