box
box copied to clipboard
Write reusable, composable and modular R code
Not sure if this is within the scope of box but if box is regarded as a better way to use scripts then perhaps it is. The feature would be...
### Please describe your feature request Enable the following syntax: ```r box::use(stats[..., ! filter]) ``` To import and attach all names from the ‘stats’ package, except the name `filter`. This...
### Error description # My set up and minimal example I have this set up: - SomeProject/ - bin/ - `someMinimalScript.R` - utils/ - R/ - `someMinimalModule.R` Contents of `someMinimalScript.R`:...
Currently, `box::use()` assumes that any error raised inside it must come from ‘box’ itself, and the error message/traceback is completely useless for module developers if there was an error in...
Work in progress implementation of #234. The first draft includes auto-reloading for subsequent `box::use` calls: * `box::enable_autoreload()` enables auto-reloading for `box::use` calls only. This solution should work e.g. for Shiny...
I've been having trouble working with callr and box. Specifically, sourcing modules by `box::use(./module)' fails, as it appears that callr attempts to find them in a /tmp/ folder, rather than...
### Please describe your feature request Although the purpose of box is to define modules as an alternative to packages two other usages are possible: 1. add a help system...
### Error description If this file, called test.R, is in current directory ``` #' Add two numbers. #' #' @param x the first number. #' @param y the second number....
### Please describe your feature request Could you add a feature where we'd be able to store our modules in an S3 bucket and load them directly from there? This...
Is there a {box} alternative to something like devtools::install_github so that we can create, share, and reuse R packages hosted in GitHub repos just like we do with R packages?