Learn R Programming

rpubmed (version 0.1)

write_record_list: Writes article title and citation data to file or stdout. Can optionally also output abstracts and output as Markdown, with customisable line starts, e.g. for unordered lists

Description

Writes article title and citation data to file or stdout. Can optionally also output abstracts and output as Markdown, with customisable line starts, e.g. for unordered lists

Usage

write_record_list(articles, out_file = "", abstract_p = FALSE, markdown_p = FALSE, linestart = "* ")

Arguments

articles
A list of Pubmed Records e.g. as returned by fetch_in_chunks()
out_file
character file to write results to. Empty string returns to stdout
abstract_p
boolean Output the abstract?
linestart
Character string to add at the front of each line, controlling markdown output. Default is "* "
markdown_p
boolean Output as markdown?