Thanks to visit codestin.com
Credit goes to github.com

Skip to content

covr fails when curly brackets in ... arguments to dbplyr::build_sql() #379

@ianmcook

Description

@ianmcook

Minimal reprex:

Define this function in a package:

foo <- function() {
  src <- dbplyr::src_memdb()
  dbplyr::build_sql(
    {sql("foo")},
    con = src$con
  )
}

Then call it in a test. testthat::test_check() succeeds but covr::package_coverage() fails. Remove the curly brackets around sql("foo") and it succeeds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions