Explorar el Código

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

tags/v0.3.0
Garrick Aden-Buie hace 6 años
padre
commit
77271b9634
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      R/ggplot2.R

+ 2
- 2
R/ggplot2.R Ver fichero

@@ -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)) {

Cargando…
Cancelar
Guardar