[backport] Fix R CRAN failures. (#7404) (#7451)

* Remove hist builder dtor.

* Initialize values.

* Tolerance.

* Remove the use of nthread in col maker.
This commit is contained in:
Jiaming Yuan
2021-11-19 21:40:04 +08:00
committed by GitHub
parent 9bbd00a49f
commit 0f9ffcdc16
6 changed files with 20 additions and 23 deletions

View File

@@ -228,7 +228,7 @@ if (grepl('Windows', Sys.info()[['sysname']]) ||
X <- 10^runif(100, -20, 20)
if (capabilities('long.double')) {
X2X <- as.numeric(format(X, digits = 17))
expect_identical(X, X2X)
expect_equal(X, X2X, tolerance = float_tolerance)
}
# retrieved attributes to be the same as written
for (x in X) {