R/generateReport.R

Defines functions generateReport

Documented in generateReport

#' generateReport
#'
#' @param outputFile a path to the html output file
#' @param resTable the table result of the CalculateScore() function
#' @param readsMatrix the reads matrix
#' @param CNVpos the CNVpos list result of the abSamples function
#'
#' @import rmarkdown
#'
#' @return a html report
#' @export
#'
#' @examples
#'generateReport()
generateReport <- function(outputFile='n', readsMatrix, resTable, CNVpos){
  if (outputFile!='n'){
    template <- system.file("template.Rmd", package = "ifCNVR")
    render(template, output_file = outputFile)
  } else {
    cat("An output file path is needed.")
  }
}

Try the ifCNVR package in your browser

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

ifCNVR documentation built on March 18, 2022, 6:15 p.m.