Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
b271eaccb7
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. +4
    -1
      R/ggplot2.R

+ 4
- 1
R/ggplot2.R Näytä tiedosto

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())
} }

Loading…
Peruuta
Tallenna