I use R Markdown documents in RStudio to write LaTeX equations. In my native language, decimal separator in numbers is a comma (European style numbers). I.e., `0,49`

means "0 point forty-nine". If I write numbers like this as LaTeX equations in R Markdown, a small space is added after the comma and the number looks like two separate numbers (in this case, 0 and 49):

If I knit to HTLM, the same problem persists:

I heard that LaTeX packages **siunitx** and **icomma** may be helpful in this situation. Unfortunately, I do not imagine how to use them with RStudio.

**Question:** How to make LaTeX equations in R Markdown documents, knitted HTLM documents, and bookdown (GitBook) projects accept comma as a decimal separator (remove small space after the commas)?