-
Notifications
You must be signed in to change notification settings - Fork 318
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
Error in expect_equal for long arguments that use ::
for method call
#1472
Comments
I was also wondering why some of my packages were failing on the BioC build machines, but not locally. After jogging my memory, I remembered that the BioC machines turn on |
For completeness, I have just tested (in two different R 4.1.1 versions, svn rev 80725 and 80883) the exact same lines of code (see below) that triggered the error reported in #1470 (comment), with the settings
using testthat versions 3.0.4 and 3.1.1 . The code fails with version 3.1.1 but not with version 3.0.4.
Note, though, that the failure under testthat version 3.1.1 does not happen with
and it seems that in the last couple of weeks BioC has changed back the settings of |
Yes, it was changed on Tuesday to keep the builds running until this issue is fixed; see here. |
Plan is to fix this using a function in rlang developed specifically for this purpose; rlang 1.0.0 should be going to CRAN early next week so we'll hopefully get a fix out by the end of next week |
In the latest version of testthat, a call to
expect_equal()
can produce an error inis_call_infix()
because as far as I can tellis_call_infix
expectsx[[1]]
to be a single element. The problem only occurs for very specific function calls:deparse
returns a vector with length > 1See this reprex for a reproducible example:
Created on 2021-10-07 by the reprex package (v2.0.1)
Session info
Best, Constantin
The text was updated successfully, but these errors were encountered: