[go: nahoru, domu]

Skip to content

Commit

Permalink
Only print first line when record too long
Browse files Browse the repository at this point in the history
  • Loading branch information
joelnitta committed Apr 19, 2024
1 parent fa271b4 commit c67eefe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/gb-setup-tools.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ flatfile_read <- function(flpth) {
indexes <- record_starts[i]:record_ends[i]
record <- try(paste0(lines[indexes], collapse = '\n'))
if (inherits(record, "try-error")){
print(record)
warning("record too long, dropping")
warning("Record too long, dropping. Here is the first line:")
print(lines[1])
record = NULL
}
record
Expand Down

0 comments on commit c67eefe

Please sign in to comment.