R/getLogo.R

Defines functions getLogo

Documented in getLogo

#' Get Logo file name
#'
## Copyright(c) 2017-2024 R. Mark Sharp
## This file is part of nprcgenekeepr
#'
#' @return A character vector of length one having the name of the logo file
#' used in the \code{Input} tab. A warning is returned if the configuration
#' file is not found.
#'
#' @export
#' @examples
#' result <- tryCatch(
#'   {
#'     getLogo()
#'   },
#'   warning = function(w) {
#'     print(paste0(
#'       "Warning in getLogo: ", w, ". File is to be ",
#'       suppressWarnings(getLogo())$file
#'     ))
#'   },
#'   error = function(e) {
#'     print(paste0("Error in in getLogo: ", e))
#'   }
#' )
 <- function() {
  logo <- list()
  if (getSiteInfo()$center == "SNPRC") {
    logo$file <- "../nprcgenekeepr_2_color_logo.jpg"
    logo$height <- 200L
    logo$width <- 350L
  } else {
    logo$file <- "../nprcgenekeepr_2_color_logo.jpg"
    logo$height <- 200L
    logo$width <- 350L
  }
  logo
}

Try the nprcgenekeepr package in your browser

Any scripts or data that you put into this service are public.

nprcgenekeepr documentation built on June 8, 2025, 10:55 a.m.