소스 검색

chore: align and register s3 print methods

pull/81/head
Garrick Aden-Buie 2 년 전
부모
커밋
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…
취소
저장