R character encodings in windows, Mac and Linux

I am using OS X and I am currently collaborating with a windows user and deploying scripts to a linux server. We use git for version control and I keep getting R scripts from the end of it, which uses character encoding, mixed latin1 and utf8 encodings. So I have a few questions.

  • Is there an easy-to-use editor for windows that handle UTF8 with more grace than Winedt that my co-author currently uses? I am using emacs, but I am having a hard time selling it to switch.

  • How do I configure R on Windows to read and write UTF8 by default?

It drives me crazy. Has anyone found a solution for it (whether in a workflow or in the software used) who needs to share?

+2


source to share


2 answers


Take a look at ?Encoding

to set the encoding for specific objects.

You might be in luck with options(encoding = )

see ?options

, (disclaimer, I don't have a Windows machine)



As far as editors are concerned, I have not heard any complaints about encoding issues in the Crimson editor , which lists utf-8 support as a feature.

+3


source


TextPad is a well-edited editor supporting R syntax that allows you to specify the target platform for files (Win / UNIX / Mac / keep current encoding) when saving them. The only problem is that some keyboard shortcuts are non-standard (for example, Find is F5, not F3).



0


source







All Articles