Learn R Programming

modules (version 0.9.11)

module_init_files: Return a list of paths to a module<U+2019>s __init__.r files

Description

Return a list of paths to a module<U+2019>s __init__.r files

Usage

module_init_files(module, module_path)

Arguments

module

character string of the fully qualified module name

module_path

the module<U+2019>s file path prefix (see Details)

Value

a vector of paths to the module<U+2019>s __init__.r files, in the order in which they need to be executed, or NULL if the arguments do not resolve to a valid nested module (i.e. not all of the path components which form the qualified module name contain a __init__.r file). The vector<U+2019>s names are the names of the respective modules.

Details

The module_path is the fully qualified module path, but without the trailing module file (either x.r or x/__init__.r).