Skip to content

Commit e785a46

Browse files
committed
use sink to create an empty feature report
1 parent a096be2 commit e785a46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pipeline/05-finalize.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ if (feature_report_enable) {
193193
} else {
194194
message("Skipping feature report generation:
195195
feature_report_enable is not enabled")
196+
# Create an empty file if model_features is not enabled
197+
sink(paths$output$model_features$local)
198+
cat("Feature report skipped because feature_report_enable is FALSE")
199+
sink()
196200
}
197201

198202
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

0 commit comments

Comments
 (0)