瀏覽代碼

chore: align and register s3 print methods

pull/81/head
Garrick Aden-Buie 1 年之前
父節點
當前提交
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,

Loading…
取消
儲存