R/reportFailedRun.R

Defines functions reportFailedRun

### todo: look for lines.lst and recursively for nmtran_error.txt
reportFailedRun <- function(lst){
    ## path.err.nmtran <- list.files()
    lines.lst <- readLines(lst)
    nlines <- length(lines.lst)
    message(sprintf("%s:\n----------------------------------------------\n%s\n----------------------------------------------",simplePath(lst),paste(lines.lst[(nlines-25):nlines],collapse="\n")))

    ## if(any(grepl("THERE ARE ERROR MESSAGES IN FILE PRDERR",lines.lst))){
    ##     lines.prderr <- readLines()
    ## }

}

Try the NMsim package in your browser

Any scripts or data that you put into this service are public.

NMsim documentation built on Sept. 9, 2025, 5:33 p.m.