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

Set global or chunk fig.showtext = FALSE to keep from setting this option on load

For #36
tags/v0.4.0
Garrick Aden-Buie 5 лет назад
Родитель
Сommit
b271eaccb7
1 измененных файлов: 4 добавлений и 1 удалений
  1. +4
    -1
      R/ggplot2.R

+ 4
- 1
R/ggplot2.R Просмотреть файл

if (!requireNamespace("showtext", quietly = TRUE)) { if (!requireNamespace("showtext", quietly = TRUE)) {
return(invisible()) return(invisible())
} }
curr_fst <- knitr::opts_chunk$get("fig.showtext")

curr_fst_chunk <- knitr::opts_current$get("fig.showtext")
curr_fst <- curr_fst_chunk %||% knitr::opts_chunk$get("fig.showtext")

if (!is.null(curr_fst) && identical(curr_fst, FALSE)) { if (!is.null(curr_fst) && identical(curr_fst, FALSE)) {
return(invisible()) return(invisible())
} }

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