remykarem
remykarem

Reputation: 2490

How to display accented Latin letters

I would like R to return me the same "é" as when I first saved it:

someLetter <- "é"
print(someLetter)
[1] "é"

But this gave me "\303\251" instead.

How can I get R to output me the same accented letter?

If this question has already been answered elsewhere, do comment below with a link! Thanks!

Upvotes: 1

Views: 151

Answers (1)

remykarem
remykarem

Reputation: 2490

Found the answer. I simply set the following:

system("defaults write org.R-project.R force.LANG en_US.UTF-8")

Upvotes: 1

Related Questions