How to display accented Latin letters

145 views Asked by At

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!

1

There are 1 answers

0
remykarem On BEST ANSWER

Found the answer. I simply set the following:

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