Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

test() doesn't distinguish plain NA_real_, NaN

Open Beginner friendly
#7,853 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
r
Domain
testing-qa

Research direction

Start by reproducing the two examples using the data.table:::test entry point. Inspect how it compares plain NA_real_ and NaN versus list-wrapped values, then add or update coverage so the helper distinguishes them consistently and both examples pass.

Written by the indexing model from the issue text.

Description

consistency tests
# no error
data.table:::test(1, NA_real_, NaN)
# but it's not totally NA-NaN-unaware
data.table:::test(1, list(NA_real_), list(NaN))
# Test 1 ran without errors but failed check that x equals y:
# > x = list(NA_real_) 
# First 1 of 1 (type 'list'): 
# [[1]]
# [1] NA

# > y = list(NaN) 
# First 1 of 1 (type 'list'): 
# [[1]]
# [1] NaN
Dominant language
R
Stars
3.9k
Forks
1.1k
Avg merge
14h 4m
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Rdatatable/data.table

All issues in Rdatatable/data.table

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.