Просмотр исходного кода

remove pipe from find_xaringan_themer_css()

tags/v0.3.0
Garrick Aden-Buie 6 лет назад
Родитель
Сommit
357ed09734
1 измененных файлов: 2 добавлений и 3 удалений
  1. +2
    -3
      R/css.R

+ 2
- 3
R/css.R Просмотреть файл



find_xaringan_themer_css <- function() { find_xaringan_themer_css <- function() {
css_files <- list.files(pattern = "css$", recursive = TRUE, full.names = TRUE) 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] css_files[is_xt]
} }

Загрузка…
Отмена
Сохранить