ropensci / RNeXML

Implementing semantically rich NeXML I/O in R
https://docs.ropensci.org/RNeXML
Other
13 stars 9 forks source link

example with cite() function call fails #144

Closed sckott closed 8 years ago

sckott commented 8 years ago

in the add_basic_meta function examples

library(knitcitations)
exml <- add_basic_meta(citation=cite("10.2307/2408428"))
#> Error in unlist(bib$key) : argument "bib" is missing, with no default

there is a utils::cite, but there's no function cite in this pkg, or in knitcitations, though knitcitations does have citep and citet, was one of those intended?

cboettig commented 8 years ago

looks like it should be bib_metadata instead of cite. whoops. (I think I was trying to avoid the collision with utils in the more recent knitcitations and changed the api...)

sckott commented 8 years ago

that works