X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=pkg%2Ftests%2Ftestthat%2Ftest-optimParams.R;h=68648046aa30f52274355ceb9b4ba8d1c55b8575;hb=7737c2fa8362b2bf590c2e2f9dcbd75424c51271;hp=809056fc9227d78b34973542d2d1599a096510f7;hpb=b0ba341e513e66bf3e551314e5f3e6f75f266e29;p=morpheus.git diff --git a/pkg/tests/testthat/test-optimParams.R b/pkg/tests/testthat/test-optimParams.R index 809056f..6864804 100644 --- a/pkg/tests/testthat/test-optimParams.R +++ b/pkg/tests/testthat/test-optimParams.R @@ -50,7 +50,7 @@ naive_f = function(link, M1,M2,M3, p,β,b) test_that("naive computation provides the same result as vectorized computations", { h <- 1e-7 #for finite-difference tests - tol <- 5e-4 #.25 * sqrt(h) #about 7.9 e-5 + tol <- 1e-3 #large tolerance, necessary in some cases... (generally 1e-6 is OK) for (dK in list( c(2,2), c(5,3))) { d = dK[1]