Basic function to export bibliographic information for use in other programs. Work in progress. Very little error checking or advanced formatting in this version
write_bibliography(x, filename, format="ris")
An object of class 'bibliography', such as imported using read_bibliography
Name of the exported file. Should ideally match 'format', but this is not enforced
Format of the exported file. Should be either "ris" (default) or "bib"
exports results as a .ris or .bib file.
# NOT RUN {
file_location<-system.file("extdata", "avian_ecology_bibliography.ris", package="revtools")
x<-read_bibliography(file_location)
# export a subset of entries as a new file
write_bibliography(x[1:5],
filename=paste0(tempdir(), "/x_out.ris"),
format="ris")
# }
Run the code above in your browser using DataLab