as.nmctl: Coerce to NONMEM Control Object

Description Usage Arguments Value Methods (by class)

Description

Coerces to NONMEM control stream object.

Coerce character to nmctl Coerces chacter to nmctl.

Converts filename to nmctl.

Converts modelname to nmctl.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
as.nmctl(x, ...)

## S3 method for class 'character'
as.nmctl(x, pattern = "^ *\\$([^ ]+)( .*)?$",
  head = "\\1", tail = "\\2", parse = FALSE, ...)

## S3 method for class 'filename'
as.nmctl(x, parse = FALSE, ...)

## S3 method for class 'modelname'
as.nmctl(x, verbose = TRUE, project = if (is.null(opt))
  getwd() else opt, opt = getOption("project"), rundir = file.path(project,
  x), ctlfile = file.path(rundir, paste0(x, ext)), ext = ".ctl",
  parse = TRUE, ...)

Arguments

x

object of dispatch

...

dots

pattern

pattern to identify record declarations

head

subpattern to identify declaration type

tail

subpattern remaining

parse

whether to convert thetas omegas and sigmas to initList and tables to itemList

verbose

whether to display messages

project

path to project directory

opt

alternative specification of project

rundir

model specific run directory

ctlfile

path to model control stream

ext

extension (with dot) for control stream

parse

convert thetas to initList

parse

convert thetas to initList

Value

nmctl

list

nmctl

nmctl

Methods (by class)


bergsmat/partab documentation built on May 12, 2019, 3:09 p.m.