Package: box 1.2.2.9000

box: Write Reusable, Composable and Modular R Code

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.

Authors:Konrad Rudolph [aut, cre], Michael Schubert [ctb]

box_1.2.2.9000.tar.gz
box_1.2.2.9000.zip(r-4.7)box_1.2.2.9000.zip(r-4.6)box_1.2.2.9000.zip(r-4.5)
box_1.2.2.9000.tgz(r-4.6-x86_64)box_1.2.2.9000.tgz(r-4.6-arm64)box_1.2.2.9000.tgz(r-4.5-x86_64)box_1.2.2.9000.tgz(r-4.5-arm64)
box_1.2.2.9000.tar.gz(r-4.7-arm64)box_1.2.2.9000.tar.gz(r-4.7-x86_64)box_1.2.2.9000.tar.gz(r-4.6-arm64)box_1.2.2.9000.tar.gz(r-4.6-x86_64)
box_1.2.2.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
box/json (API)

# Install 'box' in R:
install.packages('box', repos = c('https://klmr.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/klmr/box/issues

Pkgdown/docs site:https://klmr.me

On CRAN:

Conda:

modulespackages

13.04 score 969 stars 4 packages 67 scripts 8.8k downloads 15 mentions 12 exports 0 dependencies

Last updated from:4844e20081 (on build). Checks:11 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE139
linux-devel-x86_64NOTE159
source / vignettesOK245
linux-release-arm64NOTE150
linux-release-x86_64NOTE167
macos-release-arm64NOTE101
macos-release-x86_64NOTE194
macos-oldrel-arm64NOTE108
macos-oldrel-x86_64NOTE198
windows-develNOTE136
windows-releaseNOTE101
windows-oldrelNOTE90
wasm-releaseOK162

Exports:exportfilehelpnamepurge_cacheregister_S3_methodreloadscript_pathset_script_pathtopenvunloaduse

Dependencies:

Contributing to ‘box’
Installation | Development | Building | Branches | Attribution and copyright | Code style

Last update: 2026-05-03
Started: 2023-10-22

Migration guide
‘modules’ “v1.0” == ‘box’ | Importing modules and packages | General syntax | Attaching names | Loading documentation | Executing code during module loading | Changed options | Changed function names | Exporting names from modules | Accessing default packages | Loading parents of nested modules | Displaying documentation | Cyclic imports

Last update: 2026-04-14
Started: 2021-01-24

Get started
Using modules | Attaching modules | Writing modules | Nesting modules | Code execution on loading | Module helper functions

Last update: 2025-11-24
Started: 2021-01-24

Frequently asked questions
General | Can I call library/require/source inside a module? | Can I use “meta packages” like ‘tidyverse’ with ‘box’? | How to organise globally installed modules? | Common error messages | “object 'X' not found” inside a module | “there is no package called ‘X’” when running box::use(X), even though the module 'X' exists

Last update: 2025-11-16
Started: 2021-05-19

Module environments
Preliminaries | An example | c.r | b.r | a.r | Environments | Module namespace | Module imports environment | Module export environment | Importing into other environments

Last update: 2025-11-16
Started: 2025-11-16

Similar packages
Tools for writing modular code | Tools for loading code | Tools for organising code

Last update: 2024-02-06
Started: 2021-07-28

Testing modules
Testing is crucial | Support for existing testing frameworks | A note on RStudio and other IDEs | Test interfaces, not implementation details

Last update: 2022-08-28
Started: 2021-03-15

Using compiled code
Current status | Example | Compile code | Loading compiled code | Interacting with compiled code

Last update: 2022-08-28
Started: 2021-01-24