Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

write_bibliography

Export imported bibliographic data as .bib or .ris formats


Description

Basic function to export bibliographic information for use in other programs. Work in progress. Very little error checking or advanced formatting in this version

Usage

write_bibliography(x, filename, format = "ris")

Arguments

x

An object of class 'bibliography', such as imported using read_bibliography

filename

Name of the exported file. Should ideally match 'format', but this is not enforced

format

Format of the exported file. Should be either "ris" (default) or "bib"

Value

exports results as a .ris or .bib file.

Examples

file_location <- system.file(
  "extdata",
  "avian_ecology_bibliography.ris",
  package = "revtools")
x <- read_bibliography(file_location, return_df = FALSE)

# export a subset of entries as a new file
write_bibliography(x[1:5],
  filename = paste0(tempdir(), "/x_out.ris"),
  format = "ris")

revtools

Tools to Support Evidence Synthesis

v0.4.1
GPL-3
Authors
Martin J. Westgate [aut, cre]
Initial release
2019-12-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.