Skip to content

Commit

Permalink
Fix bug in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Jan 20, 2025
1 parent 569af02 commit 846a5a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions singlecell/resources/chunks/SaveData.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ if (length(errorMessages) > 0) {
write(errorMessages, file = 'seuratErrors.txt')
}

if (file.exists('savedSeuratObjects.txt')) {
print(paste0('Total lines in savedSeuratObjects.txt:', length(readLines('savedSeuratObjects.txt'))))
if (file.exists(trackerFile)) {
print(paste0('Total lines in ', trackerFile, ':', length(readLines(trackerFile))))
} else {
print('File does not exist: savedSeuratObjects.txt')
print(paste0('File does not exist: ', trackerFile))
}

0 comments on commit 846a5a2

Please sign in to comment.