Rdocumentation
powered by
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
Link to current version
Version
Version
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Install
install.packages('box')
Monthly Downloads
5,219
Version
1.2.1
License
MIT + file LICENSE
Issues
64
Pull Requests
5
Stars
937
Forks
48
Repository
https://github.com/klmr/box
Homepage
https://klmr.me/box/
Maintainer
Konrad Rudolph
Last Published
November 28th, 2025
Functions in box (1.2.1)
Search all functions
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