Learn R Programming

modules (version 0.9.8)

export_submodule_: Export a given submodule from the current module

Description

Export a given submodule from the current module

Usage

export_submodule_(submodule)

Arguments

submodule

character string of length 1 with the name of the submodule

Examples

Run this code
# NOT RUN {
# x/__init__.r:
export_submodule('./foo')

# x/foo.r:
answer_to_life = function () 42

# Calling code can now use the above modules:
x = import('x')
x$answer_to_life() # returns 42
# }

Run the code above in your browser using DataLab