Skip to content

Error handling for using a factor with i#4660

Closed
ben-schwen wants to merge 2 commits intoRdatatable:masterfrom
ben-schwen:master
Closed

Error handling for using a factor with i#4660
ben-schwen wants to merge 2 commits intoRdatatable:masterfrom
ben-schwen:master

Conversation

@ben-schwen
Copy link
Copy Markdown
Member

Closes #1632.

Added an additional check for is.factor to avoid the confusing error "i has evaluated to type integer. Expecting logical, integer or double." when executing setkey(data.table(a=factor("a")))[factor("a")].

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 4, 2020

Codecov Report

Merging #4660 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4660   +/-   ##
=======================================
  Coverage   99.61%   99.61%           
=======================================
  Files          73       73           
  Lines       14244    14245    +1     
=======================================
+ Hits        14189    14190    +1     
  Misses         55       55           
Impacted Files Coverage Δ
R/data.table.R 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dfd91ca...dccc7e9. Read the comment docs.

@mattdowle
Copy link
Copy Markdown
Member

mattdowle commented Aug 30, 2021

Replaced by #5120 which makes it work rather than a better error.

@mattdowle mattdowle closed this Aug 30, 2021
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

Successfully merging this pull request may close these issues.

handling i which is a factor

2 participants