Skip to contents

The naming rxode2 itself uses, exported so a package that captures a model expression with substitute() names models the same way rxode2 does. A symbol keeps its name, a call is named by its rxModelName() method, and an expression that names nothing falls back to rxModelNameLhs().

Usage

rxModelNameFromExpr(expr, envir = parent.frame())

Arguments

expr

expression naming the model, usually from substitute()

envir

environment the expression came from, used to dispatch and evaluate its arguments

Value

single character string naming the model, or NULL when it cannot be named

See also

Other Model names: rxModelName(), rxModelNameLhs()

Author

Matthew L. Fidler

Examples


rxModelNameFromExpr(quote(one.cmt))
#> [1] "one.cmt"

rxModelNameFromExpr(quote(readModelDb("PK_1cmt")))
#> [1] "readModelDb(\"PK_1cmt\")"