check_file.Rd
Reads the head and tail of specified file and prints it the console and/or returns it as a character vector. This is called internally in several S3 methods described below.
check_file(.file, .head = 3, .tail = 5, .print = TRUE, .return = FALSE) tail_output(.mod, ...) # S3 method for character tail_output(.mod, .head = 3, .tail = 5, .print = TRUE, .return = FALSE, ...) # S3 method for bbi_nonmem_model tail_output(.mod, .head = 3, .tail = 5, .print = TRUE, .return = FALSE, ...) tail_lst(.mod, ...) # S3 method for character tail_lst(.mod, .head = 3, .tail = 5, .print = TRUE, .return = FALSE, ...) # S3 method for bbi_nonmem_model tail_lst(.mod, .head = 3, .tail = 5, .print = TRUE, .return = FALSE, ...)
.file | Character scalar of path to file to read |
---|---|
.head | Integer for number of lines to read from the top of the file |
.tail | Integer for number of lines to read from the bottom of the file |
If |
|
.return | If |
.mod | Model object or path associated with file. |
... | arguments passed through to |
tail_output
: Tail the OUTPUT file from a file path to a model.
tail_output
: Tail the OUTPUT file from a bbi_nonmem_model
object.
tail_lst
: Tail the .lst file from a file path to a model.
tail_lst
: Tail the .lst file from a bbi_nonmem_model
object.