From 61d0e35353a2f0aab66289794c47918c0ee0e382 Mon Sep 17 00:00:00 2001 From: James Azam Date: Wed, 14 Feb 2024 18:30:16 +0000 Subject: [PATCH] Use the right boolean --- R/checks.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/checks.R b/R/checks.R index e2e850cd..fc7baf65 100644 --- a/R/checks.R +++ b/R/checks.R @@ -63,9 +63,9 @@ ) if (func_name == "simulate_chains") { - if (!generation_time_specified) { + if (generation_time_specified) { .check_generation_time_valid(generation_time) - } else if (!tf_specified) { + } else if (tf_specified) { stop("If `tf` is specified, `generation_time` must be specified too.") } checkmate::assert_numeric(