Learn R Programming

nonmemica (version 1.0.8)

modelpath.character: Resolve A Path to a Model-related File for Character

Description

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.

Usage

# S3 method for character
modelpath(
  x,
  ext = NULL,
  project = getOption("project", getwd()),
  nested = getOption("nested", TRUE),
  ...
)

Value

character

Arguments

x

object

ext

file extension, no leading dot

project

project directory (can be expression)

nested

whether model files are nested in eponymous directories

...

passed arguments

See Also

Other path: datafile.character(), datafile.numeric(), datafile(), modeldir(), modelfile(), modelpath.numeric(), modelpath(), psn_options(), specfile.character(), specfile.numeric(), specfile()