punctuation in utils::cite()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

punctuation in utils::cite()

Georgi Boshnakov
Hi,

I wonder if the following is a design decision in the default bib style  for utils::cite().

Create a bibentry object:

> bibs <- bibtex::read.bib(package = "tools")
> bibs

Murdoch D (2009). "Parsing Rd files." <URL:
http://developer.r-project.org/parseRd.pdf>.

When an entry is cited with with a text to include with argument `after', I would expect a comma after the year, but both textual and parenthesised citation include only a space delimiter:

> cite("murdoch:2009", bib = bibs, after = "section 2", textual = TRUE)
[1] "Murdoch (2009 section 2)"

> cite("murdoch:2009", bib = bibs, after = "section 2")
[1] "(Murdoch 2009 section 2)"


Is this intended?  Including the comma in `after' doesn't help, since the space is before it:

> cite("murdoch:2009", bib = bibs, after = ", section 2", textual = TRUE)
[1] "Murdoch (2009 , section 2)"

> cite("murdoch:2009", bib = bibs, after = ", section 2")
[1] "(Murdoch 2009 , section 2)"


Georgi Boshnakov


        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel