check_file() prints its output without a final newline. That renders okay in the RStudio console, which takes care of adding a missing newline, but it can lead to a misplaced prompt in other consoles. Example from a plain R terminal console:
> tail_lst("inst/model/nonmem/basic/1", .head = 0, .tail = 2)
...
Stop Time:
Mon Nov 8 11:35:08 EST 2021> CURSOR HERE
check_file() prints its output without a final newline. That renders okay in the RStudio console, which takes care of adding a missing newline, but it can lead to a misplaced prompt in other consoles. Example from a plain R terminal console: