Closed cboettig closed 11 years ago
In other words, stick something like this at the start of citep.
> f <- function(...){ L <- as.list(match.call()[-1]); sapply(L, deparse)}
> f(Halpern2006, Xie2012)
[1] "Halpern2006" "Xie2012"
citep(name="10.11", name2 = "10.12)
will work, but not calls in the original format citep(c(name="10.11", name2 = "10.12"))
Unlikely to be able to drop the quotations in the call and always parse successfully, particularly now that other data can be added to the citet
call, such as the CiTO reason.
Meanwhile, at least the same interface will take a DOI, a bibentry object, a URL, or a character string matching a bibkey, and bibkeys can be assigned at the time of call.
A quick idea that came in my mind is, use
deparse()
oras.list(match.call()[-1])
insidecitep()
so that you can get rid of quotes, then use the dot-dot-dot argument; finally you should be able to writecitep(Halper2006, Xie2012)
- Yihui