Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/math/R-cran-RcppArmadillo/files/patch-inst_tinytest_test__cube.R
18157 views
1
https://github.com/RcppCore/RcppArmadillo/issues/408
2
3
--- inst/tinytest/test_cube.R.orig 2023-02-19 18:01:50 UTC
4
+++ inst/tinytest/test_cube.R
5
@@ -24,7 +24,7 @@ Rcpp::sourceCpp("cpp/cube.cpp")
6
Rcpp::sourceCpp("cpp/cube.cpp")
7
8
.onWindows <- .Platform$OS.type == "windows"
9
-critTol <- if (.onWindows) 1.0e-6 else 1.5e-7
10
+critTol <- if (.onWindows || .Machine$sizeof.long == 4 || .Machine$sizeof.long == 8) 1.0e-6 else 1.5e-7
11
12
## test arrays
13
dbl_cube <- array(1.5:27.5, rep(3, 3))
14
15