浏览代码

remove pipe from find_xaringan_themer_css()

tags/v0.3.0
父节点
当前提交
357ed09734
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. +2
    -3
      R/css.R

+ 2
- 3
R/css.R 查看文件

@@ -21,9 +21,8 @@ read_css_vars <- function(file = NULL) {

find_xaringan_themer_css <- function() {
css_files <- list.files(pattern = "css$", recursive = TRUE, full.names = TRUE)
is_xt <- css_files %>%
purrr::map(readLines, n = 5) %>%
grepl(pattern = "generated by xaringanthemer", fixed = TRUE)
css_files_head <- purrr::map(css_files, readLines, n = 5)
is_xt <- grepl(pattern = "generated by xaringanthemer", css_files_head, fixed = TRUE)

css_files[is_xt]
}

正在加载...
取消
保存