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.
I would like to use
spelling
to check against.qmd
files.", temp_file )
spelling::spell_check_files(temp_file)