You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stopf("It looks like you re-used `:=` in argument %d a functional assignment call -- use `=` instead: %s(col1=val1, col2=val2, ...)", jj-1L, call_name)
if (typeof(x)=="double"&&!decreasing&&!(containsNAs<- anyNA(x))) {
211
-
if (internal) stopf("Internal code should not be being called on type double")
212
-
return(.Call(Cfsort, x, verbose))
210
+
if (typeof(x)=="double"&&!decreasing&&!(containsNAs<- anyNA(x))) {
211
+
if (internal) stopf("Internal code should not be being called on type double")
212
+
return(.Call(Cfsort, x, verbose))
213
213
}
214
-
else {
215
-
# fsort is now exported for testing. Trying to head off complaints "it's slow on integer"
216
-
# The only places internally we use fsort internally (3 calls, all on integer) have had internal=TRUE added for now.
217
-
# TODO: implement integer and character in Cfsort and remove this branch and warning
218
-
if (!internal){
219
-
if (typeof(x)!="double") warningf("Input is not a vector of type double. New parallel sort has only been done for double vectors so far. Using one thread.")
220
-
if (decreasing) warningf("New parallel sort has not been implemented for decreasing=TRUE so far. Using one thread.")
221
-
if (containsNAs) warningf("New parallel sort has not been implemented for vectors containing NA values so far. Using one thread.")
222
-
}
223
-
orderArg=if (decreasing) -1Lelse1L
224
-
o= forderv(x, order=orderArg, na.last=na.last)
225
-
return( if (length(o)) x[o] elsex )
214
+
# fsort is now exported for testing. Trying to head off complaints "it's slow on integer"
215
+
# The only places internally we use fsort internally (3 calls, all on integer) have had internal=TRUE added for now.
216
+
# TODO: implement integer and character in Cfsort and remove this branch and warning
217
+
if (!internal) {
218
+
if (typeof(x) !="double") warningf("Input is not a vector of type double. New parallel sort has only been done for double vectors so far. Using one thread.")
219
+
if (decreasing) warningf("New parallel sort has not been implemented for decreasing=TRUE so far. Using one thread.")
220
+
if (containsNAs) warningf("New parallel sort has not been implemented for vectors containing NA values so far. Using one thread.")
0 commit comments