Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/translate_ode.R
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}

Expand Down