R/pro.R

Defines functions nonmem2rxRec.pro

Documented in nonmem2rxRec.pro

#' @export
#' @rdname nonmem2rxRec
nonmem2rxRec.pro <- function(x) {
  .x <- x
  class(.x) <- NULL
  .ret <- NULL
  for (.cur in .x) {
    .ret <- c(.ret, strsplit(.cur, "\n")[[1]])
  }
  .ret <- gsub("^ *(.*) *$", "\\1", .ret)
  .nonmem2rx$modelDesc <- c(.nonmem2rx$modelDesc, .ret)
}
#' @export
#' @rdname nonmem2rxRec
nonmem2rxRec.aaa <- nonmem2rxRec.pro

Try the nonmem2rx package in your browser

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

nonmem2rx documentation built on April 3, 2025, 11:05 p.m.