Closed paleolimbot closed 5 years ago
Can you point me to a real world example of a markdown file with a citation bibliography?
Try here: https://github.com/paleolimbot/coring-deformation (published version here: https://doi.org/10.1007/s10933-017-9947-1 )
It looks like LaTeX equations are also included in the spell checking, in addition to references.
spelling::spell_check_files("README.Rmd")
# WORD FOUND IN
# Acknowledgements README.Rmd:151
# acton README.Rmd:101,105,115
# al README.Rmd:101,105,183
# aubourg README.Rmd:101
# Aubourg README.Rmd:101
# brunschon README.Rmd:131
# cocquyt README.Rmd:149
# dplyr README.Rmd:111,111
# et README.Rmd:101,105,183
# frac README.Rmd:103,125,129
# funcion README.Rmd:101
# ggplot README.Rmd:111,111
# glew README.Rmd:101,119
# Glew README.Rmd:119
# guyard README.Rmd:131
# iV README.Rmd:125
# kegwin README.Rmd:101
# Kegwin README.Rmd:101
# kylander README.Rmd:131
# ln README.Rmd:103
# NSERC README.Rmd:153
# ODP README.Rmd:101,105
# Oufi README.Rmd:101
# paleolimnological README.Rmd:2,97,107,121,143,149
# paleomagnetic README.Rmd:101
# replicability README.Rmd:131
# rosenbaum README.Rmd:101,107
# stratigraphic README.Rmd:97
# Stratigraphy README.Rmd:93
# un README.Rmd:131
# wickham README.Rmd:111
# XRF README.Rmd:131
When using references in RMarkdown, it looks like they count as spelling errors (also, keys and values in the YAML header show up as errors, but these are pretty easy to filter out and might even be necessary if the title field needs checking). I'd be happy to make a PR on this, but not sure what the approach should be. Maybe a user-defined filter function that can exclude certain regexes from being checked?