Closed elbamos closed 9 years ago
hmm, I cannot reproduce this. Are you still getting this error? Can you send me the output of sessionInfo()
after you get these errors?
sorry for the long turn-around.
Right now I've wrapped citet and citep layer that embeds them in tryCatch(). What's happening seems to be related to RefManageR not being able to parse some Zotero output. When different slices of the same data get passed into knitcitations -- for example, by telling it to load the output of two ReadZotero calls -- then the problem begins. And for whatever reason, cleanbib() isn't cleaning it up, so it gets worse and worse on each call. Is there any way to get knitcitations to produce some kind of diagnostic ouput or verbose logging for me to send you?
Thanks for the reply. Can you give me a minimal example that I can use to reproduce this error? It sounds like it is related to the caching of bibdata in either RefManageR or knitcitations. Also let me know the output of sessionInfo()
I have tried, and I can't get to a minimal example. The issue happens sometimes, usually when its the first time I knit my file after starting a new R session. Sometimes it doesn't happen. I haven't located a precise thing that determines whether the knit will fail. The collection of materials is on Zotero in a public repository at G55WMD92. If it would help, I can also provide the inline citations (i.e., the ones to URLs.)
okay, thanks for trying. Sounds like this may be due to specific examples in the Zotero collection and not the tutorial examples then? Without a reproducible example of the error I cannot really debug, so I'll close this for the time being. Anyone who can reproduce the error should feel free to reopen / add additional comments here.
I get oodles of errors trying this out; there are a consistent few, but nearly every call to citet() or citep() returns an error, including cut-and-pasted commands from the tutorial. I'm not sure if I am doing something fundamentally wrong here, or if there's some kind of configuration issue, or what.
Examples:
Xie, Y. Dynamic Documents with R and knitr. ISBN 978-1482203530. Boca Raton, Florida: Chapman and Hall/CRC, 2013. URL: http://yihui.name/knitr/.
Xie, Y. “knitr: A Comprehensive Tool for Reproducible Research in R”. In: Implementing Reproducible Computational Research. Ed. by V. Stodden, F. Leisch and R. D. Peng. ISBN 978-1466561595. Chapman and Hall/CRC, 2014. URL: http://www.crcpress.com/product/isbn/9781466561595.
Xie, Y. knitr: A General-Purpose Package for Dynamic Report Generation in R. R package version 1.8.2. 2014. URL: http://yihui.name/knitr/.