Skip to content

Commit c79f281

Browse files
committed
rm assert_data.tree_installation()
1 parent fdb7580 commit c79f281

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

R/communicate.R

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,3 @@ communicate_summary <- function(changed, ruler_width) {
3939
cli::cat_rule(width = max(40L, ruler_width))
4040
}
4141
}
42-
43-
44-
assert_data.tree_installation <- function() {
45-
if (!is_installed("data.tree")) {
46-
abort("The package data.tree needs to be installed for this functionality.")
47-
}
48-
}

R/nested-to-tree.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ create_tree_from_pd_with_default_style_attributes <- function(pd,
4747
#' }
4848
#' @keywords internal
4949
create_node_from_nested_root <- function(pd_nested, structure_only) {
50-
assert_data.tree_installation()
50+
check_installed("data.tree")
5151
name <- if (structure_only) {
5252
"Hierarchical structure"
5353
} else {

R/set-assert-args.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set_arg_write_tree <- function(write_tree) {
99
if (is.na(write_tree)) {
1010
write_tree <- is_installed("data.tree")
1111
} else if (write_tree) {
12-
assert_data.tree_installation()
12+
check_installed("data.tree")
1313
}
1414
write_tree
1515
}

0 commit comments

Comments
 (0)