Reads the head and tail of specified file and prints it the console and/or returns it as a character vector.
S3 generic for tailing the OUTPUT file
S3 dispatch for tailing the OUTPUT file
S3 dispatch for tailing the OUTPUT file
S3 generic for tailing the lst file
S3 dispatch for tailing the lst file
S3 dispatch for tailing the lst file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | check_file(.file, .head = 3, .tail = 5, .print = TRUE, .return = FALSE)
tail_output(.mod, ...)
## S3 method for class 'character'
tail_output(.mod, .head = 3, .tail = 5, .print = TRUE, .return = FALSE, ...)
## S3 method for class 'bbi_nonmem_model'
tail_output(.mod, .head = 3, .tail = 5, .print = TRUE, .return = FALSE, ...)
tail_lst(.mod, ...)
## S3 method for class 'character'
tail_lst(.mod, .head = 3, .tail = 5, .print = TRUE, .return = FALSE, ...)
## S3 method for class 'bbi_nonmem_model'
tail_lst(.mod, .head = 3, .tail = 5, .print = TRUE, .return = FALSE, ...)
|
.file |
Character scaler 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 |
.print |
Boolean for whether to print resulting head and tail to console. Defaults to TRUE. |
.return |
Boolean for whether to return resulting head and tail as a character vector. Defaults to FALSE. |
.mod |
bbi_nonmem_model object |
... |
args passed through |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.