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 which 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:
on
function)logger
, a predefined event listener based on futile.loggerserve_static_files
: add pdf
to binary typesserve_static_files
: removed link between path
and file servedauto-unbox
value for json responsesstrict_params
argument to decorate
auth_basic
method
for use
middlewareAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.