Skip to content

Switch Rcpp Vignette Engine away from highlight #604

@coatless

Description

@coatless

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.

Related to #506 and should be associated with #602

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions