Learn R Programming

box (version 1.2.3)

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

7,319

Version

1.2.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Konrad Rudolph

Last Published

August 20th, 2026

Functions in box (1.2.3)

script_path

Set the base path of the script
parse_export_tags

Extract comment tags from Roxygen block comments
s3

Internal S3 infrastructure helpers
parse_export_specs

Find exported names in parsed module source
path

Get a module’s path
register_S3_method

Register S3 methods
topenv

Get a module’s namespace environment
unload

Unload or reload modules
use

Import a module or package
throw

Throw informative error messages
wrap_unsafe_function

Wrap “unsafe calls” functions
spec

Parse a mod or pkg spec expression passed to use
paths

Path related functions
find_in_path

Find a module’s source location
file

Find the full paths of files in modules
export

Explicitly declare module exports
namespace

Module namespace handling
default

Retrieve a value or a default
fmt

String formatting helpers
info

Information about a physical module or package
create_export_block

Collect export tag information
add_comments

Extend code regions to include leading comments and whitespace
box

An alternative module system for R
loaded

Environment of loaded modules
help-internal

Helper functions for the help functionality
has_export_tag

Find @export tags in code regions
map

Apply function to elements in list
parse_documentation

Parse a module’s documentation
lsf

Return a list of function names in an environment
mod-hooks

Hooks for module events
name

Get a module’s name
help

Display module documentation
importing

Import a module or package