Resolves a path to a model-related file, treating x
as a model name.
By default (ext
is NULL) the run directory is returned.
As of version 0.9.2, nested
can be a function of ext
and ...
That returns logical.
# S3 method for character
modelpath(
x,
ext = NULL,
project = getOption("project", getwd()),
nested = getOption("nested", TRUE),
...
)
character
object
file extension, no leading dot
project directory (can be expression)
whether model files are nested in eponymous directories
passed arguments
Other path:
datafile.character()
,
datafile.numeric()
,
datafile()
,
modeldir()
,
modelfile()
,
modelpath.numeric()
,
modelpath()
,
psn_options()
,
specfile.character()
,
specfile.numeric()
,
specfile()