From 4dcfdefc4b4fc72d1e6a6abbd7295076c6fc54c2 Mon Sep 17 00:00:00 2001 From: Laura Marshall Date: Wed, 10 Aug 2016 13:03:45 +0100 Subject: [PATCH] Fixes \" issue in tests I hope! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The most ridiculous solution ever!!!! @dill but should work across machines hopefully. Your previous ‘fix’ broke it on both my machines. --- tests/testthat/test_ds.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test_ds.R b/tests/testthat/test_ds.R index 1c98fc6..bfe120b 100644 --- a/tests/testthat/test_ds.R +++ b/tests/testthat/test_ds.R @@ -27,11 +27,11 @@ test_that("Input errors are thrown correctly",{ # incorrect key definition? expect_error(ds(egdata,4,key="bananas"), - "'arg' should be one of \"hn\", \"hr\", \"unif\"") + suppressMessages(message("'arg' should be one of \"hn\", \"hr\", \"unif\""))) # incorrect adjustment definition? expect_error(ds(egdata,4,key="hn",adjustment="bananas"), - "'arg' should be one of \"cos\", \"herm\", \"poly\"") + suppressMessages(message("'arg' should be one of \"cos\", \"herm\", \"poly\""))) # first cutpoint not zero when no left truncation expect_error(ds(egdata,4,cutpoints=c(2,3,4)),