mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04: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:
parent
7c14405f8b
commit
a568f3c818
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
only be configured via R options once R has started. These are set here.
|
||||||
"""
|
"""
|
||||||
with_option = f"""\
|
with_option = f"""\
|
||||||
options(install.packages.compile.from.source = "never")
|
options(install.packages.compile.from.source = "never", pkgType = "binary")
|
||||||
{code}
|
{code}
|
||||||
"""
|
"""
|
||||||
return with_option
|
return with_option
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue