Skip to content
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

devtools::test() throws strange error #1704

Closed
paul-buerkner opened this issue Feb 1, 2018 · 3 comments
Closed

devtools::test() throws strange error #1704

paul-buerkner opened this issue Feb 1, 2018 · 3 comments

Comments

@paul-buerkner
Copy link

When running devtools::test() on the brms package (https://github.com/paul-buerkner/brms), I get the following error at the end even if all tests are passing:

error in x[[method]](...) : try to apply a non-function

Moreover, it constantly reports 4 failing tests, even if none are really failing when running them manually or with R CMD Check. I think, the problem began after updating to the latest version of testthat so I am not sure really, where the error comes from.

@jimhester
Copy link
Member

jimhester commented Feb 1, 2018

There is an issue with the new default testthat reporter when you do not have a context() block, which none of your test files seems to have. So this is actually a testthat issue, not a devtools one.

r-lib/testthat#700

duplicate of #1675

@paul-buerkner
Copy link
Author

Thanks!

bobjansen added a commit to bobjansen/mattR that referenced this issue Apr 2, 2018
@lock
Copy link

lock bot commented Sep 17, 2018

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Sep 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants