Skip to content

Commit 5cdf52d

Browse files
committed
fix filtering of input files
1 parent 5ec60c9 commit 5cdf52d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

R/NEW_00_main_CalibraCurve.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,12 @@ CalibraCurve <- function(data_path = NULL,
155155
file_ext = tools::file_ext(file))
156156
}
157157

158+
print(all_files)
159+
print(filetable)
160+
158161
### check if all files are valid (correct file type)
159162

160-
all_files <- all_files[filetable$file_ext == filetype,]
163+
all_files <- all_files[filetable$file_ext == filetype]
161164

162165

163166

@@ -307,7 +310,10 @@ CalibraCurve <- function(data_path = NULL,
307310
openxlsx::write.xlsx(summary_tab, file = paste0(output_path, "/summarytable_calibration_models.xlsx"))
308311
}
309312

313+
314+
suppressWarnings({
310315
return(list(RES = RES, summary_tab = summary_tab, plot_CC_list = pl_CC_list, plot_RF_list = pl_RF_list))
316+
})
311317
}
312318

313319

man/CalibraCurve.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)