Learn R Programming

modules (version 0.9.8)

module_file: Find the full file names of files in modules

Description

Find the full file names of files in modules

Usage

module_file(..., module = parent.frame(), mustWork = FALSE)

Arguments

...

character vectors of files or subdirectories inside a module; if none is given, return the root directory of the module

module

a module environment (default: current module)

mustWork

logical; if TRUE, an error is raised if the given files do not match existing files.

Value

A character vector containing the absolute paths to the files specified in ..., or an empty string, '', if no file was found (unless mustWork = TRUE was specified).

See Also

base::system.file