klmr/box ? reverse-engineered prompt

Reverse engineered prompt

Build me an R package that makes regular R scripts work like reusable modules, so I can split a project into small files and import only the pieces I need.

I want a simple way to write a file with exported functions, then load it from another script with a clean import statement, including support for importing packages too, choosing specific functions, using aliases, and keeping imports local so they do not leak into the global workspace. It should feel easier and safer than library(), with sensible defaults for name conflicts and nested modules in folders.

Please include a few examples in the README showing how to define a module, import it, and use it inside a function. If there are any tricky bits around loading files or resolving module paths, make them work smoothly and match the behavior described here. Look up current R docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab