as_renderer: Create a Renderer

View source: R/render.R

as_rendererR Documentation

Create a Renderer

Description

Create a custom renderer.

Usage

as_renderer(fn)

Arguments

fn

A function that accepts two arguments, the full path to the file to render, and the data to render.

Value

A renderer function.

Examples

if (interactive()) {
  fn <- function(path, data) {
    # ...
  }

  as_renderer(fn)
}

JohnCoene/ambiorix documentation built on June 13, 2025, 4:48 p.m.