Skip to content
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

One of knitr's citations doesn't protect R from downcasing #2393

Open
JenniferSLyon opened this issue Feb 19, 2025 · 0 comments
Open

One of knitr's citations doesn't protect R from downcasing #2393

JenniferSLyon opened this issue Feb 19, 2025 · 0 comments

Comments

@JenniferSLyon
Copy link

I was generating a pdf document using Rmarkdown and knitr. I cited knitr. I noticed in my bibliography that in the last of the three knitr citations the title appeared with R downcased. This is using the apa.csl stylesheet.

Xie, Y. (2014). Knitr: A comprehensive tool for reproducible research in R. 
In V. Stodden, F. Leisch, & R.  D. Peng (Eds.), Implementing reproducible 
computational research. Chapman; Hall/CRC.

Xie, Y. (2015). Dynamic documents with R and knitr (2nd ed.). 
Chapman; Hall/CRC. https://yihui.org/ knitr/

Xie, Y. (2024). Knitr: A general-purpose package for dynamic report generation in r. 
https://yihui.org/kn itr/

Where the last title should end "... for dynamic report generation in R".

I believe I traced the issue down to the last citation not protecting R with {}.

> library(knitr)
> toBibtex(citation("knitr"))
@Manual{,
  title = {knitr: A General-Purpose Package for Dynamic Report Generation in R},
  author = {Yihui Xie},
  year = {2024},
  note = {R package version 1.49},
  url = {https://yihui.org/knitr/},
}

[...]

I'm a little surprised R with their vast package checking doesn't catch this issue, since I imagine knitr isn't the only package with this issue.

Hopefully there is a straightforward fix.

Jen.

> xfun::session_info()
R version 4.4.2 (2024-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.1 LTS

Locale:
  LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
  LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
  LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
  LC_PAPER=en_US.UTF-8       LC_NAME=C                 
  LC_ADDRESS=C               LC_TELEPHONE=C            
  LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

Package version:
  compiler_4.4.2  evaluate_1.0.3  graphics_4.4.2  grDevices_4.4.2
  highr_0.11      knitr_1.49      methods_4.4.2   stats_4.4.2    
  tools_4.4.2     utils_4.4.2     xfun_0.50       yaml_2.3.10    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant