Portfolio

Our Work

HTML element construction for R.

A deterministic, framework-agnostic DSL for building HTML nodes and rendering them to a string. It does not implement templating, dependency management, widgets, or framework integrations. Just clean, composable HTML construction.

Useful in server-side R frameworks like ambiorix where you need full control over the HTML you produce without the overhead of a full widget system.

library(hypertext)
page <- tags$div(
  class = "app",
  tags$h1("Hello"),
  tags$p(
    class = "lead",
    "Server-side HTML."
  )
)

render(page)
#> [1] "<div class=\"app\"><h1>Hello</h1><p class=\"lead\">Server-side HTML.</p></div>"