R/setSources_REPORT.R

Defines functions setSources.REPORT

# setSources_REPORT

setSources.REPORT = function(report, messageLevel = 0) {
  
  if(messageLevel > 0){
    message("Running setSources.REPORT")
  }
  
  # pull the necessary stuff from the report
  DataLocation = report$getDataLocation()
  
  # set the relevant members of the report object
  report$setSourceFileNamesQuick(list.files(paste0(DataLocation,"\\exports")))
  report$setSourcesQuick(list.files(paste0(DataLocation,"\\exports"), full.names = T))
  
} # /setSources.REPORT function
debarros/rrttReportBuilder documentation built on Oct. 16, 2020, 4 p.m.