From 7e7b702ff2cf9a96d626b25c0a63f9f8e572f353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tymoteusz=20Wo=C5=82od=C5=BAko?= Date: Mon, 25 Sep 2017 16:24:41 +0200 Subject: [PATCH] Update helpers.R This hack is not needed any more as pinvgamma was fixed. Next time if you find such bug, feel free to post issue on my github page (https://github.com/twolodzko/extraDistr/). --- tests/testthat/helpers.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/testthat/helpers.R b/tests/testthat/helpers.R index 3de267ce..2e483cc7 100644 --- a/tests/testthat/helpers.R +++ b/tests/testthat/helpers.R @@ -332,8 +332,7 @@ mock_mcmc <- function (n_samples = 1010) { dinvgamma <- extraDistr::dinvgamma qinvgamma <- extraDistr::qinvgamma -pinvgamma <- function (q, alpha, beta) - ifelse(q < 0, 0, extraDistr::pinvgamma(q, alpha, beta)) +pinvgamma <- extraDistr::pinvgamma dlaplace <- extraDistr::dlaplace plaplace <- extraDistr::plaplace