powered by
Create a custom renderer.
as_renderer(fn)
A renderer function.
A function that accepts two arguments, the full path to the file to render, and the data to render.
file
data
if (interactive()) { fn <- function(path, data) { # ... } as_renderer(fn) }
Run the code above in your browser using DataLab