R/knit.R

Defines functions createReport

Documented in createReport

#' Title
#'
#' @param readPath path to mzML/mzXML
#' @param writePath path and file name of whereto write html output
#'
#' @return report
#' @export
#'
createReport <- function(readPath,
                         writePath){
  rmd <- system.file('gnps_report.Rmd',
                     package = 'mzPlotter')
  rmarkdown::render(rmd,
                    params = list(path = readPath),
                    output_file = writePath)
}
chasemc/mzPlotter documentation built on Nov. 19, 2019, 12:39 a.m.