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

'lintr::expect_lint_free()' fails when run by goodpractice #139

Open
richelbilderbeek opened this issue Mar 7, 2020 · 0 comments
Open
Labels
Projects

Comments

@richelbilderbeek
Copy link

goodpractice is right, but I am having trouble getting a clean result of goodpractice.

If I have a minimal package with only this test:

test_that("Package style", {
  lintr::expect_lint_free()
})

Building on Travis CI passes fine.

However, when Travis script runs the next line, with the command goodpractice::gp(), I get
this log error message:

It is good practice to

  ✖ checking tests ... Running ‘testthat.R’ ERROR Running the tests in

    ‘tests/testthat.R’ failed. Last 13 lines of output: >
    test_check("galb") ── 1. Error: Package style (@test-style.R#2)
    ────────────────────────────────── invalid 'path' argument
    Backtrace: 1. lintr::expect_lint_free() 2. lintr::lint_package(...)
    3. base::normalizePath(path, mustWork = FALSE) 4.
    base::path.expand(path) ══ testthat results
    ═══════════════════════════════════════════════════════════ [ OK: 0
    | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ] 1. Error: Package style
    (@test-style.R#2) Error: testthat unit tests failed Execution
    halted

I expect the goodpractice::gp() test to work on Travis. When I run it locally, it also just works.

I hope you enjoy my thorough bug report and I hope I can wish you good luck to fix this 👍

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

No branches or pull requests

2 participants