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

From: Renaud Gaujoux <renaud_at_mancala.cbio.uct.ac.za>
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

-- 
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="http://R-Forge.R-project.org")
>>
>> 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
> http://euclid.psych.yorku.ca/SCS/Private/Rbibs/
>
> Also, see the document
> http://euclid.psych.yorku.ca/SCS/Private/Rbibs/Rpkg-test.pdf
> 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
>
>
>
______________________________________________ R-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
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 https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive