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

CRAN package check results errors #54

Closed
alexzwanenburg opened this issue Sep 26, 2024 · 1 comment
Closed

CRAN package check results errors #54

alexzwanenburg opened this issue Sep 26, 2024 · 1 comment

Comments

@alexzwanenburg
Copy link

In the packages I maintain, I use coro for to generate different combinations of parameters for testing. My continuous integration tests produced an error because coro was not installed, which led me to check CRAN (NOTE: the actual issue with my CI tests may be unrelated).

On CRAN, I noticed that for the latest and dev builds of R, tests within the coro package produces several errors.

Version: 1.0.4
Check: tests
Result: ERROR 
    Running ‘testthat.R’ [18s/22s]
  Running the tests in ‘tests/testthat.R’ failed.
  Complete output:
    > library(testthat)
    > library(coro)
    > 
    > test_check("coro")
    [ FAIL 3 | WARN 0 | SKIP 5 | PASS 202 ]
    
    ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
    • On CRAN (5): 'test-async.R:25:1', 'test-generator.R:27:3',
      'test-generator.R:34:3', 'test-iterator.R:3:3', 'test-iterator.R:31:3'
    
    ══ Failed tests ════════════════════════════════════════════════════════════════
    ── Error ('test-parser-block.R:63:3'): `{` blocks - nested ─────────────────────
    Error in `node_poke_cdr(prev_refs, nested_refs)`: bad value
    Backtrace:
        ▆
     1. └─coro:::expect_snapshot0(...) at test-parser-block.R:63:3
     2.   ├─rlang::inject(expect_snapshot(!!enquo0(expr), cran = cran)) at tests/testthat/helper-flowery.R:5:5
     3.   └─testthat::expect_snapshot(...)
     4.     └─rlang::cnd_signal(state$error)
    ── Error ('test-parser-block.R:100:3'): `{` blocks - complex nesting ───────────
    Error in `node_poke_cdr(prev_refs, nested_refs)`: bad value
    Backtrace:
        ▆
     1. └─coro:::expect_snapshot0(...) at test-parser-block.R:100:3
     2.   ├─rlang::inject(expect_snapshot(!!enquo0(expr), cran = cran)) at tests/testthat/helper-flowery.R:5:5
     3.   └─testthat::expect_snapshot(...)
     4.     └─rlang::cnd_signal(state$error)
    ── Error ('test-parser-if.R:30:3'): `if` blocks - inner block ──────────────────
    Error in `node_poke_cdr(prev_refs, nested_refs)`: bad value
    Backtrace:
        ▆
     1. └─coro:::expect_snapshot0(...) at test-parser-if.R:30:3
     2.   ├─rlang::inject(expect_snapshot(!!enquo0(expr), cran = cran)) at tests/testthat/helper-flowery.R:5:5
     3.   └─testthat::expect_snapshot(...)
     4.     └─rlang::cnd_signal(state$error)
    
    [ FAIL 3 | WARN 0 | SKIP 5 | PASS 202 ]
    Error: Test failures
    Execution halted
@lionel-
Copy link
Member

lionel- commented Sep 26, 2024

yep nothing to worry about, these are test-only failures

@lionel- lionel- closed this as completed Oct 30, 2024
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