我正在使用 RMarkdown 创建一个 Word 文档,其中包含几个句子,其中插入了数字作为内联 R 块。我想使用不间断空格作为千位分隔符,但似乎无法找到这样做的方法。我找到了 HTML 和 PDF 输出的解决方案,但不是 Word 输出的解决方案。
---
output: word_document
---
This is a long sentence with some numbers, so I would like to use non-breaking spaces as thousands separator. For instance, in the number `r formatC(1234, big.mark = " ")`.
任何帮助将非常感激。