From fc92c772724d54394418a928baab3ccf11a01701 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Mon, 31 Aug 2026 09:49:04 -0700 Subject: [PATCH] mark '^' fixed in error branch --- R/translate_ode.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/translate_ode.R b/R/translate_ode.R index f7b76c7f..ae79cd1a 100644 --- a/R/translate_ode.R +++ b/R/translate_ode.R @@ -68,7 +68,7 @@ translate_ode <- function( ## if power specified using ^ in RxODE model, need to translate to pow() function ## since C++ only allows for that, Fortran allows for both. This cannot be done ## simply using regex, need to be parsed more properly. For now, let's just throw an error: - if(any(stringr::str_detect(lines, "^"))) { + if(any(stringr::str_detect(lines, stringr::fixed("^")))) { stop("Sorry, use of the `base^exp` syntax for power functions is not supported by translator yet. Please specify RxODE model using `pow(base, exp)` instead.") }