Flip bit64.promoteInteger64ToCharacter to TRUE by default - #334
Flip bit64.promoteInteger64ToCharacter to TRUE by default#334MichaelChirico wants to merge 11 commits into
Conversation
|
Yes the result should be |
|
Wait, no - it should be integer64, since |
|
You may change target_class to the following: target_class = function(x, recursive=FALSE, POSIXltAsCharacter=FALSE, forSetOps=FALSE) {
classes = getClassesOfElements(x, recursive=isTRUE(recursive))
if ("character" %in% classes || (isTRUE(forSetOps) && any(c("factor", "ordered") %in% classes))) {
# TODO(#44): next Release: Add warning for "TRUE"; subsequent Release: change from warning to error; subsequent Release: remove option and promote_to_char
if (isTRUE(getOption("bit64.promoteInteger64ToCharacter", TRUE))) return("character")
}
if ("POSIXlt" %in% classes && isTRUE(POSIXltAsCharacter)) return("character")
if ("complex" %in% classes) return("complex")
"integer64"
}and add That would leave 6 failing tests in test_setops64 for |
|
I hope it is ok that I committed to your branch directly. |
|
I am surprised by the white spaces around argument assignments, e.g. Why are you hesitating to merge this PR? |
@hcirellu I am not sure we have the right behavior here, WDYT?
Shouldn't the result be a
factor()?We currently have 6 failing tests after the flip due to this at root AIUI.