Skip to contents

Using modules & packages

Functions for users of modules and packages

use()
Import a module or package

Writing modules

Infrastructure and utility functions for use inside modules

export()
Explicitly declare module exports
file()
Find the full paths of files in modules
name()
Get a module’s name
register_S3_method()
Register S3 methods
topenv()
Get a module’s namespace environment
.on_load() .on_unload()
Hooks for module events

Interactive use

Functions for use in interactive sessions and for testing

help()
Display module documentation
unload() reload() purge_cache()
Unload or reload modules
set_script_path() script_path()
Set the base path of the script