Skip to content

Commit

Permalink
fix(rpart): add missing namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
bakaburg1 committed May 2, 2021
1 parent 9597c93 commit 3f0d558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rpart.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tidy_tree.rpart <- function(tree, rule_as_text = TRUE, eval_ready = FALSE,
tibble::rownames_to_column('id') %>%
dplyr::mutate(id = as.numeric(id)) %>%
dplyr::transmute(
rule = path.rpart(tree, id, print.it = FALSE) %>%
rule = rpart::path.rpart(tree, id, print.it = FALSE) %>%
lapply(function(node.rules) { # add spaces around equal/greater/less signs

stringr::str_replace_all(node.rules[-1], c(
Expand Down

0 comments on commit 3f0d558

Please sign in to comment.