ソースを参照

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

tags/v0.3.0
コミット
77271b9634
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      R/ggplot2.R

+ 2
- 2
R/ggplot2.R ファイルの表示

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

読み込み中…
キャンセル
保存