Learn R Programming

grateful (version 0.0.3)

create_rmd: Create template rmarkdown file with package citations

Description

Create template rmarkdown file with package citations

Usage

create_rmd(
  bib.list,
  bibfile = "pkg-refs.bib",
  csl = NULL,
  filename = "refs.Rmd",
  out.dir = getwd()
)

Arguments

bib.list

List of package citations in BibTeX format, as produced by get_citations.

bibfile

Name of the file containing references in BibTeX format, as produced by get_citations.

csl

Optional. Citation style to format references. See http://citationstyles.org/styles/.

filename

Name of the rmarkdown file

out.dir

Directory to save the output document. Defaults to working directory.

Value

An rmarkdown file

Examples

Run this code
# NOT RUN {
library(grateful)
pkgs <- scan_packages()
cites <- get_citations(pkgs)
rmd <- create_rmd(cites)
# }

Run the code above in your browser using DataLab