inbo / checklist

An R package for checking R packages and R code
https://inbo.github.io/checklist
GNU General Public License v3.0
16 stars 2 forks source link

`check_spelling()` does not use all words in dictionary #121

Closed wlangera closed 7 months ago

wlangera commented 7 months ago

When I run the check_spelling() function, I get messages that 'feitelijke' and landbouwcijfers.vlaanderen.be are not in my dictionary.

image

But this is not true:

image

I am not sure why. I have tried to quote (') other words, but there it works. So I am not sure if special characters are the cause. landbouwcijfers.vlaanderen.be is uses as such in my markdown file:

[landbouwcijfers.vlaanderen.be](https://landbouwcijfers.vlaanderen.be/open-geodata-landbouwgebruikspercelen)

I was unable to debug this (got stuck at the function R_hunspell_info()).

ThierryO commented 7 months ago

Use double quotes instead of single quotes. checklist considers single quotes as apostrophes.

landbouwcijfers.vlaanderen.be is not a word but an url. Use either

[https://landbouwcijfers.vlaanderen.be](https://landbouwcijfers.vlaanderen.be/open-geodata-landbouwgebruikspercelen)
[Vlaamse landbouw en visserij in cijfers](https://landbouwcijfers.vlaanderen.be/open-geodata-landbouwgebruikspercelen)
wlangera commented 7 months ago

Thank you. Solved!