Learn R Programming

ambiorix (version 2.2.0)

as_renderer: Create a Renderer

Description

Create a custom renderer.

Usage

as_renderer(fn)

Value

A renderer function.

Arguments

fn

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

Examples

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

  as_renderer(fn)
}

Run the code above in your browser using DataLab