leppott / ContDataQC

Quality control checks on continuous data. Example data is from a HOBO data logger with 30 minute intervals.
https://leppott.github.io/ContDataQC/
MIT License
20 stars 10 forks source link

QC - fails if output file already exists #95

Open leppott opened 3 years ago

leppott commented 3 years ago

Describe the bug Found a case of the ContDataQC - QC process failing when the output file already existed.

To Reproduce Example from ContDataQC. If already have run the output and files are in QC folder the 2nd file fails.

# QC Raw Data
myData.Operation <- "QCRaw" #Selection.Operation[2]
myData.SiteID    <- "test2"
myData.Type      <- Selection.Type[3] #"AW"
myData.DateRange.Start  <- "2013-01-01"
myData.DateRange.End    <- "2014-12-31"
myDir.import <- file.path(myDir.BASE,Selection.SUB[2]) #"Data1_RAW"
myDir.export <- file.path(myDir.BASE,Selection.SUB[3]) #"Data2_QC"
myReport.format <- "docx"
ContDataQC(myData.Operation, myData.SiteID, myData.Type, myData.DateRange.Start
           , myData.DateRange.End, myDir.import, myDir.export
           , fun.myReport.format=myReport.format)

Expected behavior Shouldn't error.

Screenshots If applicable, add screenshots to help explain your problem. image

Additional context Not sure if a consistent problem.

Low priority.