Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
use non-breaking thin space as thousands separator in rmarkdown
myNum <- function(n) {
# use in markdown with variable some_number:
# `r myNum(some_number)` and the thousands separator is a
# nonbreaking thin space, which is ISO 30-1
return(prettyNum(n, big.mark='&thinsp;'))
}
@vm-wylbur

This comment has been minimized.

Copy link
Owner Author

vm-wylbur commented Jan 1, 2019

Don't use commas or periods as thousands separator. Use the thin space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.