Learn R Programming

NMdata (version 0.2.3)

lstExtractTime: Extract run time from output control stream

Description

Extract run time from output control stream

Usage

lstExtractTime(file, tz.lst = "as.is")

Value

A POSIXct date-time object

Arguments

file

path to output control stream

tz.lst

The time zone of the time stamp from Nonmem. The default ("as.is") is to try to extract it or take it from the system on which this function is run. See details.

Details

Time zones are system specific. See OlsonNames() for a list of what time zones are available on the system.

Examples

Run this code
file <- system.file("examples/nonmem/xgxr003.lst",package="NMdata")
NMdata:::lstExtractTime(file)
file <- system.file("examples/nonmem/xgxr003.mod",package="NMdata")
NMdata:::lstExtractTime(file)

if (FALSE) {
all.lsts <- list.files(
  system.file("examples/nonmem",package="NMdata"),
  pattern="\\.lst",full.names=TRUE)
lapply(all.lsts,NMdata:::lstExtractTime)
}

Run the code above in your browser using DataLab