Message-ID: <DA3DAA37-E8C4-4B1A-AAFC-3DC833AD924D@imperial.ac.uk>
Date: 2013-01-31T17:24:10Z
From: Federico Calboli
Subject: Encoding issue with text output from R
In-Reply-To: <64FC5841-7131-456C-97A8-EF0BA6908AE7@plessthan.com>
Heve you tried opening the file in TextEdit, save it, and open it in Word after?
BW
F
On 31 Jan 2013, at 17:17, Fisher Dennis <fisher at plessthan.com> wrote:
> R 2.15.2
> OS X ML
>
> Colleagues,
>
> I am "sink"ing output from statistical tests to a text file:
> sink(FILENAME)
> SOMETEST()
> sink()
>
> When I open the file with TextEdit, the output from lm() contains:
> Signif. codes: 0 ?***? 0.001 ?**? 0.01 ?*? 0.05 ?.? 0.1 ? ? 1
>
> When I open the identical file in Word (2008), that same text appears as:
> Signif. codes: 0 ???***??? 0.001 ???**??? 0.01 ???*??? 0.05 ???.??? 0.1 ??? ??? 1
> When Word opens, it asks about the selection of encoding for the file. I tried a number of options and all lead to the same distorted text.
>
> Any idea how to resolve this (other than to ignore Word!)?
>
> Dennis
>
> Dennis Fisher MD
> P < (The "P Less Than" Company)
> Phone: 1-866-PLessThan (1-866-753-7784)
> Fax: 1-866-PLessThan (1-866-753-7784)
> www.PLessThan.com
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
--
Federico C. F. Calboli
Neuroepidemiology and Ageing Research
Imperial College, St. Mary's Campus
Norfolk Place, London W2 1PG
Tel +44 (0)20 75941602 Fax +44 (0)20 75943193
f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com