Skip to content

Commit a568f3c

Browse files
enforce binary installs also for dependencies of R packages
Similar problem seems to be found in r-lib/devtools#1724
1 parent 7c14405 commit a568f3c

File tree

1 file changed

+1
-1
lines changed
  • pre_commit/languages

1 file changed

+1
-1
lines changed

pre_commit/languages/r.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _inline_r_setup(code: str) -> str:
158158
only be configured via R options once R has started. These are set here.
159159
"""
160160
with_option = f"""\
161-
options(install.packages.compile.from.source = "never")
161+
options(install.packages.compile.from.source = "never", pkgType = "binary")
162162
{code}
163163
"""
164164
return with_option

0 commit comments

Comments
 (0)