modulecoerce: Coercion for Modules

Description Usage Arguments Examples

Description

Interfaces to and from modules.

Usage

1
2
3
4
5
6
7
as.module(x, ...)

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

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

Arguments

x

something which can be coerced into a module. character are interpreted as file / folder names.

...

arguments passed to parse

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

envir

(environment) the environment from where module is called. Used to determine the top level environment and should not be supplied by the use.

Examples

1
2
3
4
5
# as.module is used by 'use' so see the vignette for examples:
## Not run: 
vignette("modulesInR", "modules")

## End(Not run)

modules documentation built on Feb. 7, 2021, 1:06 a.m.