R/reduce.R

Defines functions reduce

Documented in reduce

reduce = function(instrument, runDate){
  cfg = CRDSutils::init()
  inputFile = system.file("dataReduction_template.RMD", 
                          package = "CRDSutils")
  outputFile = file.path(cfg$outPath, 
                          paste0(instrument, "_",
                                 runDate, ".html"))
  rmarkdown::render(inputFile, 
                    params = list(instrument = instrument,
                                  runDate = runDate),
                    output_file = outputFile)
  browseURL(outputFile)
}
SPATIAL-Lab/CRDSutils documentation built on Dec. 12, 2024, 3:23 a.m.