Skip to content

Commit

Permalink
refactor: more fixed strings
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muecke committed Jun 30, 2024
1 parent be8a67f commit a08c974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/Graph.R
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ Graph = R6Class("Graph",
null_str = function(x) x %??% "NULL"
if (node == "<INPUT>") {
txt = paste0("Input:<br>Name: ", self$input$name, "<br>Train: ", null_str(self$input$train), "<br>Predict: ", null_str(self$input$predict))
} else if (grepl("<OUTPUT>", node)) {
} else if (grepl("<OUTPUT>", node, fixed = TRUE)) {
if (nrow(self$output) > 1) {
out = self$output[self$output$name == gsub("<OUTPUT>\n", "", node), ] # Deal with multiple outputs
out = self$output[self$output$name == gsub("<OUTPUT>\n", "", node, fixed = TRUE), ] # Deal with multiple outputs
} else {
out = self$output # Standard case, single output
}
Expand Down

0 comments on commit a08c974

Please sign in to comment.