Skip to content

Commit 6790dd2

Browse files
move function declaration
1 parent bfd29eb commit 6790dd2

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

R/communicate.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ communicate_summary <- function(changed, ruler_width) {
2626
cli::cat_bullet(bullet = "cross", "\t", sum(is.na(changed)), "\tStyling threw an error.")
2727
cli::cat_rule(width = max(40, ruler_width))
2828
}
29+
30+
stop_insufficient_r_version <- function() {
31+
stop(paste0(
32+
"Can't write tree with R version ", getRversion(),
33+
"since data.tree not available. Needs at least R version 3.2."
34+
), call. = FALSE)
35+
}

R/testing.R

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,6 @@ copy_to_tempdir <- function(path_perm = testthat_file()) {
212212
file.path(dir, base)
213213
}
214214

215-
216-
stop_insufficient_r_version <- function() {
217-
stop(paste0(
218-
"Can't write tree with R version ", getRversion(),
219-
"since data.tree not available. Needs at least R version 3.2."
220-
), call. = FALSE)
221-
}
222-
223215
#' Generate a comprehensive collection test cases for comment / insertion
224216
#' interaction
225217
#' Test consist of if / if-else / if-else-if-else cases, paired with various

0 commit comments

Comments
 (0)