R/logo.R

#' Package tools
#'
#' Get some extra info about packages.
#'
#' @export
#' @rdname extra
#' @param path root directory of package
 <- function (path = ".") {
  # Match logic from pkgdown but return path relative package root.
  files <- c('logo.svg', 'man/figures/logo.svg', 'logo.png', 'man/figures/logo.png')
  candidates <- file.path(path, files)
  utils::head(files[file.exists(candidates)], 1)
}
jeroen/makeconf documentation built on Jan. 26, 2025, 10:25 a.m.