Closed IndrajeetPatil closed 2 years ago
Merging #102 (9b8d69b) into develop (c784c6f) will decrease coverage by
0.00%
. The diff coverage isn/a
.
@@ Coverage Diff @@
## develop #102 +/- ##
===========================================
- Coverage 99.40% 99.40% -0.01%
===========================================
Files 17 17
Lines 169 168 -1
===========================================
- Hits 168 167 -1
Misses 1 1
Impacted Files | Coverage Δ | |
---|---|---|
R/validation-type.R | 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 c784c6f...9b8d69b. Read the comment docs.
@abdullahhamadeh I can reproduce this issue, but only for R versions < "4.1"
.
Need to figure out what exactly changed in the latest version of R that leads to the correct behaviour.
Do you have a workaround for this for the time being?
Thanks @IndrajeetPatil. I do have a workaround: validateIsOfType(factor(3),type = "numeric")
gives
Error in validateIsOfType(factor(3), type = "numeric") :
validateIsOfType: argument 'factor(3)' is of type 'factor', but expected 'numeric'!
fine with me. MErging
The behaviour of
validateIsNumeric()
is different with factors for R versions>= 4.1
and< 4.1
due to the following change:The current PR adds tests to make sure that the correct behaviour continues to be observed for
R > 4.1
, and we don't unintentionally introduce a regression.Closes #94