-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
roxygenize
cannot find Bioconductor pkg dependency when setting environment
#507
Comments
I think it's related to MRAN being retired. I suggest you to |
Just to make sure, you have |
I believe edit: However, it still fails when adding |
The problem still persists with R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
r> packageVersion("renv")
[1] ‘1.0.2’
r> packageVersion("precommit")
[1] ‘0.3.2.9020’
|
A colleague is also facing the same problem in MacOSX ⊞ Click here to see the full log `/home/user/.cache/pre-commit/pre-commit.log`version information
error information
|
Ok. {renv} should sort these ones out, but adding should not hurt. I can reproduce the issue with https://github.com/lorenzwalthert/precommit.507. Seems like the problem is that we have I note that implementing #494 would also solve your problem, which is the better solution anyways. I suggest you deactivate the roxygenise hook for now. If you are interested in contributint to #494 (should be mostly cp for the existing roxygenise hook), let me know. |
I note that the solution outlined in the wiki also wont' work for me, i.e. installing the package with {renv} in your global environment and depend on the cache. |
Thanks @lorenzwalthert , I've installed a modified I'll keep an eye on #494 and I'll write there if I find the time to pick up that issue. diff --git a/pre_commit/languages/r.py b/pre_commit/languages/r.py
index 6feb065..8a1205b 100644
--- a/pre_commit/languages/r.py
+++ b/pre_commit/languages/r.py
@@ -167,8 +167,7 @@ def _inline_r_setup(code: str) -> str:
with_option = [
textwrap.dedent("""\
options(
- install.packages.compile.from.source = "never",
- pkgType = "binary"
+ install.packages.compile.from.source = "never"
)
"""),
code, |
Before filing a bug
remotes::install_github('lorenzwalthert/precommit')
precommit::autoupdate()
)Describe the bug
Can't install the environment if
roxygenize
plugin hasbioc::MultiAssayExperiment
andbioc::SummarizedExperiment
additional dependenciesTo Reproduce
Steps to reproduce the behavior:
git clone https://github.com/insightsengineering/teal.modules.general
git commit -m "something"
Expected behavior
Install all the additional dependencies
Additional context
Error
⊞ Click here to see the full log `/home//.cache/pre-commit/pre-commit.log`
version information
error information
The text was updated successfully, but these errors were encountered: