Re: [Rd] R package BibTex entries: looking for a more general solution

From: Renaud Gaujoux <>
Date: Mon, 19 Dec 2011 16:09:45 +0200

Indeed I broke the function when adding support for bibentry objects... By the way, let's give credits back to Ceasars: I am not the author of the bibtex package, Romain Francois is. I just contributed the write.bib function, mainly inspired by Achim's function.

Romain, I will send a fix for this now.


Renaud Gaujoux
Computational Biology - University of Cape Town
South Africa

On 19/12/2011 15:56, Michael Friendly wrote:

> On 12/19/2011 2:02 AM, Renaud Gaujoux wrote:
>> Hi,
>> I actually adapted and integrated this feature into Achim's -- nice
>> -- function (posted on r-help).
>> Romain included it a couple of weeks ago into the bibtex package as
>> function write.bib, and submitted the update to CRAN, but some NOTEs
>> in the check delayed its availability on CRAN.
>> You can still install and try out the new version with:
>> install.packages("bibtex", repos="")
>> Keys for multiple citations are generated as "<pkgname>%i", which
>> might not be ideal, but works ok though. It might be better not
>> number the first (main) citation. Romain, I think I will submit a
>> patch for this.
>> Hope this helps.
> Thanks, Renaud
> I now have a working function, Rpackages.bib() that is roughly
> equivalent to your write.bib() and other related
> material at
> Also, see the document
> which reports some problems & perl fixes for the generated
> bibentries. These might be incorporated into
> the functions to make the resulting bibtex files directly usable.
> Your bibtex package seems the most natural place for
> this.
> Also, write.bib() doesn't seem to work unless you pass a list of
> package names.
> > write.bib()
> Error in is(entry, "bibentry") :
> argument "entry" is missing, with no default
> > write.bib(NULL)
> Error in write.bib(NULL) :
> Invalid argument `entry`: expected a bibentry object or a character
> vector of package names.
> >
> best,
> -Michael
______________________________________________ mailing list
Received on Mon 19 Dec 2011 - 14:23:14 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 19 Dec 2011 - 15:50:19 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive