Learn R Programming

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

box (version 1.0.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.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Konrad Rudolph

Last Published

February 12th, 2021

Functions in box (1.0.0)

parse_documentation

Parse a module<U+2019>s documentation
path

Get a module<U+2019>s path
parse_export_tags

Extract comment tags from Roxygen block comments
parse_export_specs

Find exported names in parsed module source
namespace

Module namespace handling
name

Get a module<U+2019>s name
register_S3_method

Register S3 methods
paths

Path related functions
unload

Unload or reload a given module
use

Import a module or package
info

Information about a physical module or package
lsf

Return a list of function names in an environment
loaded

Environment of loaded modules
find_in_path

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

Set the base path of the script
wrap_unsafe_function

Wrap “unsafe calls” functions
mod-hooks

Hooks for module events
rethrow

Pretty-print error call to be informative for the user.
s3

Internal S3 infrastructure helpers
spec

Parse a mod or pkg spec expression passed to use
box

An alternative module system for R
help

Display module documentation
file

Find the full file names of files in modules
create_export_block

Collect export tag information
default

Retrieve a value or a default
add_comments

Extend code regions to include leading comments and whitespace
has_export_tag

Find @export tags in code regions
importing

Import a module or package
help-internal

Helper functions for the help functionality