Learn R Programming

modules (version 0.3.0)

as.module: Coercion for Modules

Description

Interfaces to and from modules.

Usage

as.module(x, topEncl = baseenv(), reInit = TRUE, ...)

## S3 method for class 'character': as.module(x, topEncl = baseenv(), reInit = TRUE, ...)

## S3 method for class 'module': as.module(x, topEncl = baseenv(), reInit = TRUE, ...)

Arguments

x
something which can be coerced into a module. character are interpreted as file / folder names.
topEncl
(environment) the root of the local search path. It is tried to find a good default via autoTopEncl.
reInit
(logical) if a module should be re-initialized
...
arguments passed to parse

Examples

Run this code
# as.module is used by 'use' so see the vignette for examples:
vignette("modulesInR", "modules")

Run the code above in your browser using DataLab