-
-
Notifications
You must be signed in to change notification settings - Fork 219
Description
Rcpp vignettes presently uses the highlight package that mandates a non-standard approach to rendering the documentation.
Switching away from this engine to either knitr
or rmarkdown
requires...
Knitr
In each vignette, the following must be changed:
%\VignetteEngine{highlight::highlight}
To
%\VignetteEngine{knitr::knitr}
In the DESCRIPTION
file replace:
VignetteBuilder: highlight
with
VignetteBuilder: knitr
And add
Suggests: knitr
Switch each code chunk to use knitr options:
<<>>=
@
RMarkdown
In each vignette, YML matter must be added:
---
title: "Vignette Title"
author: "Vignette Author"
date: "`�r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Vignette Title}
%\VignetteEngine{knitr::rmarkdown}
\usepackage[utf8]{inputenc}
---
The rmarkdown::html_vignette
can be customized using RMarkdown Templates (I've had success with uiucthemes). So, the current Rcpp vignette style could be ported to an embedded style function call.
In addition, code segments must be switched over to using the GFM code ticked fence design.
However, this involves more work potentially porting over LaTeX syntax to use native RMarkdown to take full advantage of the format.