Commit 227b6dbe authored by houyun's avatar houyun
Browse files

clean

parent 0c3f22ef
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -108,18 +108,6 @@ rename <- function(data, ...) {
  data
}

#' @noRd
is_richtext <- function(x, pattern = NULL) {
  if(is.null(pattern)) {
    pattern <- c("<sub>", "<sup>", "<br>", "<span")
  }
  if(length(pattern) > 1) {
    pattern <- paste(pattern, collapse = "|")
  }
  x <- gsub("\\s+", "", x)
  any(grepl(pattern, x))
}

#' @noRd
r_version <- function() {
  strsplit(R.version.string, " ")[[1]][3]