ソースを参照

chore: align and register s3 print methods

pull/81/head
コミット
8d759a5a90
署名の抽出に失敗しました
3個のファイルの変更6行の追加2行の削除
  1. +2
    -0
      NAMESPACE
  2. +2
    -1
      R/style_font_default.R
  3. +2
    -1
      R/utils.R

+ 2
- 0
NAMESPACE ファイルの表示

@@ -1,5 +1,7 @@
# Generated by roxygen2: do not edit by hand

S3method(print,google_font)
S3method(print,xaringanthemer_default)
export(apply_alpha)
export(choose_dark_or_light)
export(darken_color)

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

@@ -22,6 +22,7 @@ xaringanthemer_font_default <- function(font_arg) {
x
}

print.xaringanthemer_default <- function(x) {
#' @export
print.xaringanthemer_default <- function(x, ...) {
print(unclass(x))
}

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

@@ -101,7 +101,8 @@ google_language_codes <- function(
unique(match.arg(language_codes, several.ok = TRUE))
}

print.google_font <- function(x) {
#' @export
print.google_font <- function(x, ...) {
cat(
"Family: ",
x$family,

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