瀏覽代碼

dplyr::desc() instead of desc()

main
Garrick Aden-Buie 7 年之前
父節點
當前提交
038ecb4f89
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      R/run_regex.R

+ 1
- 1
R/run_regex.R 查看文件

@@ -60,7 +60,7 @@ wrap_result <- function(x, escape = FALSE, exact = FALSE) {
inserts <- inserts %>%
tidyr::gather(type, loc, start:end) %>%
filter(!is.na(.data$loc)) %>%
dplyr::arrange(loc, class, desc(type)) %>%
dplyr::arrange(loc, class, dplyr::desc(type)) %>%
mutate(
class = ifelse(.data$pad > 0, sprintf("%s pad%02d", .data$class, .data$pad), .data$class),
insert = ifelse(.data$type == 'start', sprintf('<span class="%s">', .data$class), "</span>")

Loading…
取消
儲存