Преглед изворни кода

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 година
родитељ
комит
b271eaccb7
1 измењених фајлова са 4 додато и 1 уклоњено
  1. +4
    -1
      R/ggplot2.R

+ 4
- 1
R/ggplot2.R Прегледај датотеку

@@ -907,7 +907,10 @@ set_fig_showtext <- function() {
if (!requireNamespace("showtext", quietly = TRUE)) {
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)) {
return(invisible())
}

Loading…
Откажи
Сачувај