R/report_header.R

Defines functions report_header

Documented in report_header

#' Report header
#' 
#' Generate a header for \link[EpiCompare]{EpiCompare} reports generated using 
#' the \emph{EpiCompare.Rmd} template.
#' @returns Header string to be rendering within Rmarkdown file.
#' 
#' @export
#' @examples 
#' report_header()
report_header <- function(){ 
  paste0(
    "<div class='report-header'>",
    "<a href=",shQuote("https://github.com/neurogenomics/EpiCompare", type = "sh"),
    " target='_blank'>",
    "<code>EpiCompare</code>",
    "</a>",
    "<code>Report</code>",
    "<a href=",shQuote("https://doi.org/doi:10.18129/B9.bioc.EpiCompare", type = "sh"),
    " target='_blank'>",
    "<img src=",
    shQuote(system.file('hex','hex.png',package = 'EpiCompare'), type = "sh"),
    " height='100'",">",
    "</a>",
    "</div>"
  ) 
}
neurogenomics/EpiCompare documentation built on Oct. 18, 2024, 11:04 p.m.