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)
}

devOpifex/ambiorix documentation built on June 2, 2025, 11:28 a.m.