ropensci / spelling

Tools for Spell Checking in R
https://docs.ropensci.org/spelling
Other
105 stars 27 forks source link

[feature request] `.qmd` (quarto) format #77

Closed pawelru closed 5 months ago

pawelru commented 5 months ago

I would like to use spelling to check against .qmd files.

temp_file <- tempfile(fileext = ".qmd")
writeLines(
"
This is correct.
This is an eeerrrooorrr.
# Header
```{r}
foooo <- function() TRUE
foooo()

", temp_file )

spelling::spell_check_files(temp_file)



    #>   WORD           FOUND IN
    #> eeerrrooorrr   file1f2728150eea.qmd:3
    #> foooo          file1f2728150eea.qmd:6,7

<sup>Created on 2024-01-29 with [reprex v2.1.0](https://reprex.tidyverse.org)</sup>

`foooo` above is a false positive. Things are correct if I will save it as `.Rmd` format.