Learn R Programming

⚠️There's a newer version (1.2.0) of this package.Take me there.

box (version 1.1.0)

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

3,546

Version

1.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Konrad Rudolph

Last Published

September 13th, 2021

Functions in box (1.1.0)

file

Find the full file names of files in modules
add_comments

Extend code regions to include leading comments and whitespace
has_export_tag

Find @export tags in code regions
help-internal

Helper functions for the help functionality
mod-hooks

Hooks for module events
name

Get a module<U+2019>s name
throw

Throw informative error messages
help

Display module documentation
unload

Unload or reload a given module
info

Information about a physical module or package
lsf

Return a list of function names in an environment
importing

Import a module or package
use

Import a module or package
namespace

Module namespace handling
map

Apply function to elements in list
loaded

Environment of loaded modules
parse_export_tags

Extract comment tags from Roxygen block comments
parse_export_specs

Find exported names in parsed module source
wrap_unsafe_function

Wrap “unsafe calls” functions
register_S3_method

Register S3 methods
parse_documentation

Parse a module<U+2019>s documentation
paths

Path related functions
path

Get a module<U+2019>s path
s3

Internal S3 infrastructure helpers
script_path

Set the base path of the script
spec

Parse a mod or pkg spec expression passed to use
default

Retrieve a value or a default
export

Explicitly declare module exports
box

An alternative module system for R
create_export_block

Collect export tag information
find_in_path

Find a module<U+2019>s source location
fmt

String formatting helpers