Skip to content

Commit

Permalink
Add crate to custom_check in PipeOpProxy.R
Browse files Browse the repository at this point in the history
  • Loading branch information
advieser authored Aug 8, 2024
1 parent a5a9e1e commit 37b7781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/PipeOpProxy.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ PipeOpProxy = R6Class("PipeOpProxy",
# input can be a vararg input channel
inname = if (innum) rep_suffix("input", innum) else "..."
ps = ps(
content = p_uty(tags = c("train", "predidct", "required"), custom_check = function(x) {
content = p_uty(tags = c("train", "predidct", "required"), custom_check = crate(function(x) {
# content must be an object that can be coerced to a Graph and the output number must match
tryCatch({
graph = as_graph(x)
Expand All @@ -104,7 +104,7 @@ PipeOpProxy = R6Class("PipeOpProxy",
}
},
error = function(error_condition) "`content` must be an object that can be converted to a Graph")
})
}, .parent = topenv()))
)
ps$values = list(content = PipeOpFeatureUnion$new(innum = innum))
super$initialize(id, param_set = ps, param_vals = param_vals,
Expand Down

0 comments on commit 37b7781

Please sign in to comment.