inst/doc/intro.R

## ---- echo = FALSE, message = FALSE-------------------------------------------
knitr::opts_chunk$set(comment = "")
library(rjade)

## -----------------------------------------------------------------------------
# Compile a Jade template in R
text <- readLines(system.file("examples/test.jade", package = "rjade"))
tpl <- jade_compile(text, pretty = TRUE)

## -----------------------------------------------------------------------------
# Render the template
tpl()

## -----------------------------------------------------------------------------
tpl(youAreUsingJade = TRUE)

Try the rjade package in your browser

Any scripts or data that you put into this service are public.

rjade documentation built on April 16, 2021, 5:07 p.m.