R/zzz.R

Defines functions onLoad

.onLoad <- function(libname, pkgname) {
  op <- options()
  op.icon <- list(
    icon.path = rappdirs::user_data_dir("icon")
  )
  toset <- !(names(op.icon) %in% names(op))
  if (any(toset)) options(op.icon[toset])

  # Update icon details
  fa <<- iconset(icon_path("fa"), meta = icon_meta("fa"))

  invisible()
}
mitchelloharawild/icon documentation built on Nov. 8, 2018, 12:28 p.m.