nex <- add_basic_meta(title = "My test title",
description = "A description of my test",
creator = "Carl Boettiger ",
publisher = "unpublished data",
pubdate = "2012-04-01")
## Adding citation to an R package:
nexml <- add_basic_meta(citation=citation("ape"))
if (FALSE) {
## Use knitcitations package to add a citation by DOI:
library(knitcitations)
nexml <- add_basic_meta(citation = bib_metadata("10.2307/2408428"))
}
Run the code above in your browser using DataLab