lstExtractTime: Extract run time from output control stream

View source: R/lstExtractTime.R

lstExtractTimeR Documentation

Extract run time from output control stream

Description

Extract run time from output control stream

Usage

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

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.

Value

A POSIXct date-time object

Examples

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

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

## End(Not run)

NMdata documentation built on Nov. 11, 2023, 5:07 p.m.