library(tufte)
# invalidate cache when the tufte version changes
knitr::opts_chunk$set(tidy = FALSE, cache.extra = packageVersion('tufte'))
options(htmltools.dir.version = FALSE)
This work without any problems for the past month, until my update to IDE 1.4. Now I have to force quit (on Mac) because stopping the current process in Rstudio doesn't even work.
After some trails, and errors, I found that the freeze only occurs with the apa.csl style. In this case it doesn't matter whether I use apa.csl or one of the other app.#.#.csl formats. When using chicago-author-date-16th-edition.csl no problems occur.
Things are even more strange. This sentence in a paragraph
Zie k2015[181] en gill[496] voor details en discussie van \hat{R}.
Results in the following sentence in HTML:
Zie Kruschke (2015, 181) en Kruschke (2015, 181) voor details en discussie van RĖ.
When I move the gill to the next paragraph ALL citations in that paragraph are changed into gill.
So it looks like within one paragraph in the .Rmd file ALL citations are changed to the first one.
And, when link-citations: yes is commented, and the bibliography is printed at the bottom of the document, kruschke and gill are rendered as they should in the paragraph.
Sure. Watch what happens when one changes link-citations: yes to link-citations: no
With link-citations: yes in every paragraph all references after the first are changed "into" the first.
When changing to the apa-6th-edition.csl R and Rstudio completely freeze after pandoc is called.
Thanks for sharing all this. After a quick step by step debugging, I found that the issue was not related to R Markdown but with an entry in your bib file. The only reference causing issue is @lg which I think as an incorrect syntax because using 2 like that : {{ }} in the title field
@article{lg,
author = {Leenders, C. and G. Geerdink},
journal = {Tijdschrift voor Lerarenopleiders},
number = {3},
pages = {55--66},
title = {{Mannelijke pabostudenten kiezen niet voor kleuters. Weloverwogen of op basis van misconcepties? }},
volume = {34},
year = {2013}
}
If you remove the duplicated { and }, I believe it will work as expected.
It could be an issue with Pandoc new citeproc that does not throw an error and hand. Because with old Pandoc 2.7.3 it works ok, but with new version shipped in RStudio, it does not. You can as in Pandoc discussion (https://groups.google.com/g/pandoc-discuss) using a minimal example without rmarkdown.
For example in test.md
---
title: "Studievoortgang aan de pabo"
bibliography: references.bib
csl: https://www.zotero.org/styles/apa-6th-edition
---
studies van Gerda Geerdink waarvan een meer recente @lg
with the faulty bib file and using this commandline
Just tested it. Works like a charm with any Chicago as csl.
Any of the APA.###.csl results in a bibliography at the bottom even with link-citations: yes. But the references are produced correctly, even if multiple within one and the same paragraph, with Chicago as well as with APA.
The new thing now, is the references being placed at the bottom instead of in a side note, which is what the link-citations: yesshould produce.