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
aims to calculate the total number of elements for comparison. However, if this results in a value outside the range of a 32-bit integer, the code errors with
Running rCompare...
Coercing input data to data.frame
Error in if (totalSize > 2e+07) { : missing value where TRUE/FALSE needed
In addition: Warning message:
In nrow(coercedData[[1]]) * ncol(coercedData[[1]]) + nrow(coercedData[[2]]) * :
NAs produced by integer overflow
This code is just there to warn the user about a possible long run time, so it'd be preferable to remove this rather than cause this error, although I imagine there are probably numerous ways to fix it.
The text was updated successfully, but these errors were encountered:
* Update rc_rCompare.R
* Create testLargeDataWarning.R
* Update testLargeDataWarning.R
* Added one more as.double
* Refactored large data warning to make it more testable
The line
totalSize <- nrow(coercedData[[1]])*ncol(coercedData[[1]]) + nrow(coercedData[[2]])*ncol(coercedData[[2]])
aims to calculate the total number of elements for comparison. However, if this results in a value outside the range of a 32-bit integer, the code errors with
This code is just there to warn the user about a possible long run time, so it'd be preferable to remove this rather than cause this error, although I imagine there are probably numerous ways to fix it.
The text was updated successfully, but these errors were encountered: