-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bibliography("html") produces error messages #92
Comments
I recommend using pandoc mode and the csl stylesheet of your choice to format the bibliography list. The html mode might need some debugging, sorry about that. |
Ok sounds good, thanks!! |
I tried modifying the source for bibliography() as shown below, and this seems to be working now. Not sure I've considered every application, but maybe this will help... bibliography <- function(style=NULL, ...)
{
bibs <- get_bib()
NoCite(bibs)
if(is.null(style)){
BibOptions(...)
refs <- sapply(sort(bibs), csl_formatting)
cat(refs, sep="\n")
} else {
PrintBibliography(bibs, .opts=list(style=style,...))
}
invisible(bibs)
} |
Great, thanks for this update! |
Sure! I put in a pull request to update this in the repository... In the meantime I just have a local clone I installed separately. Feel free to use my fork in the meantime :). |
Dear Dr Boettiger,
First of all, thanks for providing this package, it's really quite useful for me!
I've been using the
citep
function in my text and it works well, however, when trying to use thebibliography
command, I can only get the plain no-argument version to run (bibliography()
).I tried using
bibliography("html")
but that throws error messages:I also tried using
bibliography(style = 'nature', sorting = 'ynt')
, which generated this message:I'd appreciate any advice you might have in fixing these issues!
Best,
~Lina
PS: this is the output of sessionInfo in case it is useful.
The text was updated successfully, but these errors were encountered: