Formatting Package Citations in Sweave/knitr Documents
parsePackageCitation(x)
x
output document, as a single string.