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

testScalarNA and data.table #245

Closed
DirkAmp opened this issue Oct 4, 2023 · 1 comment
Closed

testScalarNA and data.table #245

DirkAmp opened this issue Oct 4, 2023 · 1 comment

Comments

@DirkAmp
Copy link

DirkAmp commented Oct 4, 2023

R 4.2.2
data.table 1.14.8
checkmate 2.2.0

Hallo Michel,

using checkmate function testScalarNA on a data.table object returns the following warning:

In length(x) != 1L || !is.na(x) :
  'length(x) = 2 > 1' in coercion to 'logical(1)'

Reproduction via:

dt = data.table(x = 1:2)
testScalarNA(dt)

Is this a bug or did I do something wrong?

All the best
Dirk

@mllg
Copy link
Owner

mllg commented Oct 11, 2023

Fixed via #246.

@mllg mllg closed this as completed Oct 11, 2023
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