Skip to contents

Add a References section at the end of the RSF.

Usage

use_references(path = ".", number = 99)

Arguments

path

path of the directory containing the input files index.Rmd, _output.yml, preamble.tex.

number

number prepended to references Rmd source file.

Examples

# \donttest{
wd <- tempdir()
savedir <- setwd(wd)
file.copy(list.files(system.file("extdata", package = "rsf"),
                     full.names = TRUE), ".")
#> [1] FALSE FALSE  TRUE FALSE FALSE
use_references(number = 4)
#>  Adding './src/04-references.Rmd'
#>  Modifying './index.Rmd'
#>  Modifying './_output.yml'
#>  Modifying './preamble.tex'
setwd(savedir)
# }