Skip to content

Commit

Permalink
Janky progress bar handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Admin_asena5 authored and Admin_asena5 committed Apr 2, 2024
1 parent 6d7316c commit 171eab8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions R/Database.R
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,13 @@ exportDatabaseToCsv <- function(
append = tableAppend
)
tableAppend = T
utils::setTxtProgressBar(pb,endRow)

# NOTE: Handling progresss bar per note on txtProgressBar
# above. Otherwise the progress bar doesn't show that it completed.
if (endRow == countN) {
utils::setTxtProgressBar(pb,countN + 1)
} else {
utils::setTxtProgressBar(pb,endRow)
}
}
close(pb)
}
Expand Down

0 comments on commit 171eab8

Please sign in to comment.