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

Printing all lines that fail a test #94

Open
erleholgersen opened this issue Apr 25, 2018 · 1 comment
Open

Printing all lines that fail a test #94

erleholgersen opened this issue Apr 25, 2018 · 1 comment

Comments

@erleholgersen
Copy link

I have a feature request: a way of printing all lines that failed a test in the same pretty format as the summary. For example, I ran gp() on one of my packages and got the following note:

  ✖ avoid sapply(), it is not type safe. It might return a
    vector, or a list, depending on the input data. Consider using
    vapply() instead.

    R/check.split.data.numerical.fit.R:18:34
    R/check.split.data.numerical.fit.R:25:34
    R/combine.replicates.R:37:19
    R/get.combination.count.R:33:30
    R/get.combination.count.R:34:34
    ... and 3 more lines

I'm interested in figuring out what those three other lines are. I assume it's possible to extract this information from the failed_positions() or similar, but I find that format a lot more difficult to parse than the summary.

@joelnitta
Copy link

I'm after the same thing, was able to get it like this:

gp_res <- gp(checks = "rcmdcheck_tests_pass")

gp_res$rcmdcheck

(failed_positions(gp_res) returned NULL)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants