You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multiple spellcheck languages in a single project #12856
Often, I have several R scripts with comments in English and several qmd/Rmd files written mainly in Czech. I am aware that I can choose separate spellcheck languages for each RStudio project, but it would be quite helpful to have more granular control in my hands.
I have several approaches in my mind:
Add an expanding menu next to the spellcheck button , similar to the one that "Run" button posses. There could be a list of available languages. The language selected could be remembered per qmd/rmd document (the spellcheck button shows up only for these) and used for the real-time spellcheck for that document. In this case, any R script would pick up the project/global setting for real-time spellcheck.
Expand the existing global/project options to accommodate separate language for a) code/comments and b) text in qmd/rmd documents.
Look for and respect lang/language field in the YAML.
Allowing multiple spelling languages inside a single R-studio project but on different Rmd documents has to be considered a mandatory enhancement, not to be confused with allowing dynamic switching of spelling language inside a single multi-language (polyglot) Rmd document. The former is certainly of frequent use in non english environments and a must in international organisations where multiple translations of a document exist and should be open to versioning, changes and corrections. Having to use different RStudio monolinguistic projects instead turns to be a hassle.
Probably the most practical suggestion is a YAML option field to specify the language to be spell-checked inside a Rmd document, since a button to switch any time between languages and dictionaries would require to avoid rechecking parts of the same document written in another language, a cumbersome and error prone process. Another way has to be found if polyglot documents need to be spell-checked, in order to support language attribute of equivalent HTML or CSS tags,
Reacted by Lluís Revilla, Gabriel Banaggia and Dieter Menne
@DCiprut Agree that YAML is the easiest and the most robust way, but it would ignore .R or other files without YAML header. However, I would vote for that as a first step since .qmd and .rmd files are of the biggest importance. The rest is somewhat nice-to-have for me.
Thanks a lot to @netique and @olivroy for their comments. They just help to prove to Markdown or R developer teams that less rigid language and spellcheck dictionaries selection than the current project-wide specification shoud become a basic enhancement request.
Regards to the fellows,
Activity
ronblum commentedon Apr 4, 2023
@netique Thank you for the suggestion! I'll mark it for review. And thank you in general for all of the suggestions and bug reports!
DCiprut commentedon Aug 24, 2023
Allowing multiple spelling languages inside a single R-studio project but on different Rmd documents has to be considered a mandatory enhancement, not to be confused with allowing dynamic switching of spelling language inside a single multi-language (polyglot) Rmd document. The former is certainly of frequent use in non english environments and a must in international organisations where multiple translations of a document exist and should be open to versioning, changes and corrections. Having to use different RStudio monolinguistic projects instead turns to be a hassle.
Probably the most practical suggestion is a YAML option field to specify the language to be spell-checked inside a Rmd document, since a button to switch any time between languages and dictionaries would require to avoid rechecking parts of the same document written in another language, a cumbersome and error prone process. Another way has to be found if polyglot documents need to be spell-checked, in order to support language attribute of equivalent HTML or CSS tags,
netique commentedon Aug 25, 2023
@DCiprut Agree that YAML is the easiest and the most robust way, but it would ignore
.Ror other files without YAML header. However, I would vote for that as a first step since.qmdand.rmdfiles are of the biggest importance. The rest is somewhat nice-to-have for me.olivroy commentedon Aug 25, 2023
It would be so great. on my part, I usually write and comment my codes in English in R files.
But sometimes I have to write in my own language in qmd and Rmd files, hence the yaml header thing is so great, (rather than a project option)
Because I usually have many languages in a project, but not within a file.
DCiprut commentedon Aug 25, 2023
Thanks a lot to @netique and @olivroy for their comments. They just help to prove to Markdown or R developer teams that less rigid language and spellcheck dictionaries selection than the current project-wide specification shoud become a basic enhancement request.
Regards to the fellows,
RalphAlbuquerque commentedon Feb 20, 2024
Hi, are there any updates on this? Can we use the spell check in multiple languages?
gbanaggia commentedon Jul 22, 2024
Adding to this request! It is also a great feature to have in a teaching environment.
github-actions commentedon Jan 19, 2025
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
github-actions commentedon Feb 3, 2025
This issue has been automatically closed due to inactivity.