https://cran.r-project.org/package=box
Apr 10, 2026 · 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.
https://github.com/klmr/box
‘box’ allows organising R code in a more modular way, via two mechanisms: It enables writing modular code by treating files and folders of R code as independent (potentially nested) modules, without requiring the user to wrap reusable code into packages.
https://klmr.me/box/
‘box’ allows organising R code in a more modular way, via two mechanisms: It enables writing modular code by treating files and folders of R code as independent (potentially nested) modules, without requiring the user to wrap reusable code into packages.
https://cran.dev/box
‘box’ allows organising R code in a more modular way, via two mechanisms: It enables writing modular code by treating files and folders of R code as independent (potentially nested) modules, without requiring the user to wrap reusable code into packages.
https://cran.r-project.org/web/packages/box/refman/box.html
Use box::use (prefix/mod) to import a module, or box::use (pkg) to import a package. Fully qualified names are supported for nested modules, reminiscent of module systems in many other modern languages.
https://cran.r-universe.dev/box/doc/manual.html
Jul 22, 2026 · box::export can be called inside a module to specify the module’s exports. If a module contains a call to box::export, this call overrides any declarations made via the @export tag comment. When a module contains multiple calls to box::export, the union of all thus defined names is exported.
https://klmr.me/box/articles/box.html
This works analogously to how .libPaths operates on R packages. The box::use directive can now use bio/seq instead of ./bio/seq as the module name: rather than a relative name we specify a global name.
https://rdrr.io/cran/box/man/box.html
Apr 10, 2026 · Use box::use (prefix/mod) to import a module, or box::use (pkg) to import a package. Fully qualified names are supported for nested modules, reminiscent of module systems in many other modern languages.
https://modules-in-r.joshuamarie.com/1.1-start.html
With {box}, you can refer R packages like list objects, then the brackets utilizes the “subset” functionality in R that extracts the exported namespaces: not through numbers and string, but through a literal name.
https://www.rdocumentation.org/packages/box/versions/1.2.1
Nov 28, 2025 · 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.