Learn R Programming

box (version 1.2.1)

Write Reusable, Composable and Modular R Code

Description

A modern module system for R. Organise code into hierarchical, composable, reusable modules, and use it effortlessly across projects via a flexible, declarative dependency loading syntax.

Copy Link

Version

Install

install.packages('box')

Monthly Downloads

5,219

Version

1.2.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Konrad Rudolph

Last Published

November 28th, 2025

Functions in box (1.2.1)

create_export_block

Collect export tag information
export

Explicitly declare module exports
file

Find the full paths of files in modules
help

Display module documentation
name

Get a module’s name
fmt

String formatting helpers
find_in_path

Find a module’s source location
add_comments

Extend code regions to include leading comments and whitespace
box

An alternative module system for R
has_export_tag

Find @export tags in code regions
default

Retrieve a value or a default
info

Information about a physical module or package
help-internal

Helper functions for the help functionality
lsf

Return a list of function names in an environment
map

Apply function to elements in list
parse_documentation

Parse a module’s documentation
mod-hooks

Hooks for module events
loaded

Environment of loaded modules
namespace

Module namespace handling
parse_export_specs

Find exported names in parsed module source
importing

Import a module or package
topenv

Get a module’s namespace environment
script_path

Set the base path of the script
throw

Throw informative error messages
spec

Parse a mod or pkg spec expression passed to use
register_S3_method

Register S3 methods
s3

Internal S3 infrastructure helpers
wrap_unsafe_function

Wrap “unsafe calls” functions
unload

Unload or reload modules
use

Import a module or package
parse_export_tags

Extract comment tags from Roxygen block comments
path

Get a module’s path
paths

Path related functions