Learn R Programming

grateful (version 0.0.3)

render_citations: Render package citations

Description

Render package citations

Usage

render_citations(rmd, output = "html", out.dir = getwd())

Arguments

rmd

Rmarkdown file generated by create_rmd.

output

Output format, either "docx" (Word), "pdf", "html", or "md" (markdown).

out.dir

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

Value

A document in the format specified by output.

Examples

Run this code
# NOT RUN {
library(grateful)
pkgs <- scan_packages()
cites <- get_citations(pkgs)
rmd <- create_rmd(cites)
render_citations(rmd, output = "html", out.dir = getwd())
# }

Run the code above in your browser using DataLab