Learn R Programming

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

box (version 1.1.3)

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

2,367

Version

1.1.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Konrad Rudolph

Last Published

May 2nd, 2023

Functions in box (1.1.3)

help-internal

Helper functions for the help functionality
file

Find the full file names of files in modules
box

An alternative module system for R
find_in_path

Find a module’s source location
fmt

String formatting helpers
help

Display module documentation
default

Retrieve a value or a default
lsf

Return a list of function names in an environment
mod-hooks

Hooks for module events
name

Get a module’s name
map

Apply function to elements in list
info

Information about a physical module or package
parse_documentation

Parse a module’s documentation
namespace

Module namespace handling
importing

Import a module or package
loaded

Environment of loaded modules
script_path

Set the base path of the script
parse_export_specs

Find exported names in parsed module source
register_S3_method

Register S3 methods
parse_export_tags

Extract comment tags from Roxygen block comments
s3

Internal S3 infrastructure helpers
paths

Path related functions
path

Get a module’s path
unload

Unload or reload modules
topenv

Get a module’s namespace environment
throw

Throw informative error messages
wrap_unsafe_function

Wrap “unsafe calls” functions
spec

Parse a mod or pkg spec expression passed to use
use

Import a module or package
add_comments

Extend code regions to include leading comments and whitespace
export

Explicitly declare module exports
has_export_tag

Find @export tags in code regions
create_export_block

Collect export tag information