R/zzz.R

Defines functions .onAttach

#' @seealso \url{https://github.com/hrbrmstr/hrbrthemes/blob/master/R/zzz.r}
.onAttach <- function(libname, pkgname) {
  if (.Platform$OS.type == 'windows')  { # nocov start
    if (interactive()) {
      packageStartupMessage('Registering Windows fonts with R')
    }
    extrafont::loadfonts('win', quiet = TRUE)
  }
}
tonyelhabr/tonythemes documentation built on Dec. 23, 2021, 11:58 a.m.