Learn R Programming

pkgmaker (version 0.32.10)

make_vignette_auxfiles: Generate RMarkdown Vignette Axiliary Files

Description

Generate RMarkdown Vignette Axiliary Files

Usage

make_vignette_auxfiles(
  PACKAGE,
  input = NULL,
  bibfile = "library.bib",
  Rpkg.prefix = "Rpackage_",
  ...
)

Value

Path to the preamble file.

Arguments

PACKAGE

package name

input

vignette source file. If NULL then the current file is obtained via a call to knitr::current_input.

bibfile

output file for R package citations.

Rpkg.prefix

prefix to use when generating the bibtex entries of cited R packages. If Rpkg.prefix = 'Rpackage_', then Rmardown citations should be @Rpackage_mypkg.

...

other arguments passed to latex_preamble

Details

To use this feature add the following in your YAML header:

header-includes:
  - \input{"`r pkgmaker::make_vignette_auxfiles('pkgmaker')`"}
bibliography: library.bib