Rdocumentation
powered by
Learn R Programming
box (version 1.2.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
Link to current version
Version
Version
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Install
install.packages('box')
Monthly Downloads
2,297
Version
1.2.0
License
MIT + file LICENSE
Issues
61
Pull Requests
5
Stars
867
Forks
48
Repository
https://github.com/klmr/box
Homepage
https://klmr.me/box/
Maintainer
Konrad Rudolph
Last Published
February 6th, 2024
Functions in box (1.2.0)
Search all functions
mod-hooks
Hooks for module events
name
Get a module’s name
path
Get a module’s path
throw
Throw informative error messages
has_export_tag
Find
@export
tags in code regions
help-internal
Helper functions for the help functionality
help
Display module documentation
importing
Import a module or package
paths
Path related functions
register_S3_method
Register S3 methods
info
Information about a physical module or package
s3
Internal S3 infrastructure helpers
unload
Unload or reload modules
script_path
Set the base path of the script
loaded
Environment of loaded modules
wrap_unsafe_function
Wrap “unsafe calls” functions
spec
Parse a mod or pkg spec expression passed to
use
topenv
Get a module’s namespace environment
use
Import a module or package
namespace
Module namespace handling
lsf
Return a list of function names in an environment
map
Apply function to elements in list
parse_documentation
Parse a module’s documentation
parse_export_tags
Extract comment tags from Roxygen block comments
parse_export_specs
Find exported names in parsed module source
add_comments
Extend code regions to include leading comments and whitespace
file
Find the full paths of files in modules
export
Explicitly declare module exports
create_export_block
Collect export tag information
find_in_path
Find a module’s source location
default
Retrieve a value or a default
box
An alternative module system for R
fmt
String formatting helpers