Skip to content

Uninformant error message: expect_true(data.table::data.table(1)) #138

@JamesThompsonC

Description

@JamesThompsonC

he following produces an uninformative error:

expect_false(data.table::data.table(1))
expect_true(data.table::data.table(1))

Error in if (is.na(x)) "" else gsub(\n *, paste0("\n", with), paste0(with, :
the condition has length > 1

yet data.frame() is ok.

expect_false(data.frame(1))
expect_true(data.frame(1))

The error appears after all tests are run, so no indication of where and what caused the error.

Thank you for you the package.
~Jim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions