Convert a resource to a filename.

director_filename(name, absolute = FALSE, check.exists = TRUE,
  helper = FALSE, enclosing = FALSE)

Arguments

name

character. The resource name to convert to a full path.

absolute

character. Whether or not to return the absolute path (i.e., prepended by the director root). The default is FALSE.

check.exists

logical. Whether or not to check if the file exists. The default is TRUE. This argument should be set to false if the we are certain the file exists and can skip the check.

helper

logical. Whether or not to handle helper files instead of resources. The default is FALSE.

enclosing

logical. If TRUE and name refers to an idempotent resource the directory name will be returned instead of the .R file.

Value

the absolute path, relative to the director root if absolute = FALSE and an absolute path if absolute = TRUE.