check_file: Check an output file

View source: R/read-output.R

check_fileR Documentation

Check an output file

Description

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.

Usage

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, ...)

Arguments

.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

.print

If TRUE, the default, print resulting head and tail to console.

.return

If FALSE, the default, returns NULL invisibly. If TRUE returns resulting head and tail as a character vector.

.mod

Model object or path associated with file.

...

arguments passed through to check_file()

Functions

  • tail_output(character): Tail the OUTPUT file from a file path to a model.

  • tail_output(bbi_nonmem_model): Tail the OUTPUT file from a bbi_nonmem_model object.

  • tail_lst(character): Tail the .lst file from a file path to a model.

  • tail_lst(bbi_nonmem_model): Tail the .lst file from a bbi_nonmem_model object.


metrumresearchgroup/rbabylon documentation built on April 21, 2024, 3:26 a.m.