From 561923e6f418e9e86118cb8f8037b35fd5d909a1 Mon Sep 17 00:00:00 2001
From: Paul Northrop
Date: Mon, 12 Jun 2017 11:10:58 +0100
Subject: [PATCH] No need to call box_cox() in test. [ci skip]
---
tests/testthat/test_ru.R | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/testthat/test_ru.R b/tests/testthat/test_ru.R
index c32822e..bcf1b26 100644
--- a/tests/testthat/test_ru.R
+++ b/tests/testthat/test_ru.R
@@ -180,8 +180,7 @@ testthat::expect_equal(x3aii$box, normal_box(d = 3, sigma = covmat, rotate = TRU
# Check that using a log transformation takes us back to the standard
# normal case
lambda <- 0
-init <- box_cox(1, lambda = lambda)
-x <- ru(logf = stats::dlnorm, log = TRUE, d = 1, n = 1, init = init, trans = "BC",
+x <- ru(logf = stats::dlnorm, log = TRUE, d = 1, n = 1, init = 0.1, trans = "BC",
lambda = lambda)
testthat::expect_equal(x$box, normal_box(d = 1), tolerance = my_tol)