Procházet zdrojové kódy

Fix function name used in errors in register_font() and get_theme_font()

tags/v0.3.0
Garrick Aden-Buie před 6 roky
rodič
revize
77271b9634
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      R/ggplot2.R

+ 2
- 2
R/ggplot2.R Zobrazit soubor

@@ -676,13 +676,13 @@ get_theme_font <- function(element = c("text", "header", "code")) {
grepl("fonts.google", xaringanthemer_env[[element_url]], fixed = TRUE)
}

register_font(family, google = is_google_font, fn = sys.calls()[[max(1, length(sys.calls()) - 1)]])
register_font(family, google = is_google_font, fn = sys.calls()[[max(1, sys.nframe() - 1)]][[1]])
}

register_font <- function(
family,
google = TRUE,
fn = sys.calls()[[max(1, length(sys.calls()) - 1)]][[1]],
fn = sys.calls()[[max(1, sys.nframe() - 1)]][[1]],
...
) {
if (is.null(family)) {

Načítá se…
Zrušit
Uložit