Learn R Programming

⚠️There's a newer version (2.2.0) of this package.Take me there.

ambiorix

Website | CLI | Generator | Docker | Load Balancer

Web framework for R based on httpuv and inspired by express.js.

Example

library(ambiorix)

app <- Ambiorix$new()

app$get("/", function(req, res){
  res$send("Hello!")
})

app$get("/about", function(req, res){
  res$send("About page")
})

app$start()

Middlewares

Tools & Extensions

Install

The stable version is available on CRAN with:

install.packages("ambiorix")

You can also install the development version from Github:

# install.packages("ambiorix")
remotes::install_github("devOpifex/ambiorix")

Contributing

Please note that the ambiorix project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Copy Link

Version

Install

install.packages('ambiorix')

Monthly Downloads

395

Version

2.1.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

John Coene

Last Published

April 6th, 2022

Functions in ambiorix (2.1.0)

as_cookie_preprocessor

Define a Cookie Preprocessor
Request

Request
Response

Response
apply_replace_partial

Replace Partial Vectorised
as_cookie_parser

Define a Cookie Parser
as_path_to_pattern

Path to pattern
Ambiorix

Ambiorix
Router

Router
Routing

Core Routing Class
Websocket

Websocket
import

Import Files
default_cookie_parser

Cookie Parser
replace_partial

Replace Partial
create_dockerfile

Dockerfile
render_tags

Render Tags
set_log

Customise logs
set_params

Set Parameters
convert_body

Convert Body
cookie

Cookie
is_renderer_obj

Is Renderer
replace_partials

Replace Partials
responses

Plain Responses
content

Content Headers
pre_hook

Pre Hook Response
as_renderer

Create a Renderer
jobj

JSON Object
stop_all

Stop
success

CLI symbols
mockRequest

Mock Request
websocket_client

Websocket Client
parsers

Parsers
get_dir

Get Directory
forward

Forward Method
token_create

Token
new_log

Logger
robj

R Object
read_lines

Silent readLines
serialise

Serialise to JSON