jug is a small web development framework for R which relies heavily upon the httpuv
package. It’s main focus is to make building APIs for your code as easy as possible.
jug is not supposed to be either an especially performant nor an uber stable web framework. Other tools (and languages) might be more suited for that. It focuses on maximizing the ease with wich you can create web APIs for your R code. However, the flexibility of jug means that, in theory, you could built an extensive web framework with it.
Check out http://bart6114.github.io/jug/articles/jug.html for the vignette documentation.
Plugins:
Changes
v0.1.7.902
- Introduction of events and event listeners (check e.g. the
on
function)
- Introduction of the
logger
, a predefined event listener based on futile.logger
- Enabled ByteCompile on installation
v0.1.7.901
- Adjustment to
serve_static_files
: add pdf
to binary types
v0.1.7.900
- Adjustment to
serve_static_files
: removed link between path
and file served
v0.1.7
- Fixed CORS preflight request bug (issue #15)
- Fixed masking of base::get
v0.1.6
- Ability to specify
auto-unbox
value for json responses
- Added
strict_params
argument to decorate
v0.1.5
- Added basic authentication functionality through
auth_basic
v0.1.4
- Fixed bug where missing content type would not auto-parse the query string
v0.1.3
- Refactor request header processing
- Added CORS functionality
- Possible to specify
method
for use
middleware
- Refactoring of request param parsing
- New error handling middleware (JSON response)
- Additional / refined testing