Learn R Programming

jug (version 0.1.7)

A Simple Web Framework for R

Description

jug is a web framework aimed at easily building APIs. It is mostly aimed at exposing R functions, models and visualizations to third-parties by way of http requests.

Copy Link

Version

Install

install.packages('jug')

Monthly Downloads

69

Version

0.1.7

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

April 13th, 2017

Functions in jug (0.1.7)

Middleware

Middleware class
MiddlewareHandler

MiddlewareHandler R6 class definition
Response

Response class
add_middleware

Internal function to add middleware
include

Include elsewhere constructed middleware with primary jug instance
match_path

Helper function to extract regex named capture groups from string
cors

Add cors functionality
decorate

Convenience function to decorate existing functions
stop_daemon

Stop daemonized server
use

Function to add request method insensitive middleware
RawTestRequest

Generate request for testing purposes
Request

Request class
new_error

Create response instance
parse_params

Parse the params passed by the request
serve_it

Start serving the jug instance
serve_static_files

Middleware to serve static files
Error

Response class
jug

New jug instance
delete

Function to add DELETE-binding middleware
get

Function to add GET-binding middleware
ws

Function to add websocket handling middleware
post

Function to add POST-binding middleware
process_test_request

Initialize process of test request
put

Function to add PUT-binding middleware
reexports

Objects exported from other packages
auth_basic

Basic authentication middleware
collector

Collector function for middlewares
simple_error_handler

An error handler middleware which returns a error description in HTML format
simple_error_handler_json

An error handler middleware which returns a error description in JSON format