Re: [R] R.app "incompatable" with Emacs

From: Fredrik Lundgren <fredrik.bg.lundgren_at_gmail.com>
Date: Fri, 21 Mar 2008 18:26:04 +0100

Thanks a lot ,
Both suggestions by Heiberger and knussear fixed the problem with ^M!

However I would also need a method to tweak the default size of the editor window in R.app .

After all, there "must" be a way...

21 mar 2008 kl. 13.50 skrev Richard M. Heiberger:

> Emacs normally recognizes line endings and opens the file correctly.
> Therefore the
> first place to look is in the file itself. When some of the lines
> have ^M
> and others do
> not, then emacs assumes you have LF-only line endings and displays
> the ^M
> character.
>
> The preventive action is to correct the original writing of the
> file. The
> corrective
> action is to remove all the ^M characters with, for example
> M-x replace-string RET C-q C-m RET RET and save the repaired file.
>
> -----Original Message-----
> From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org
> ] On
> Behalf Of Fredrik Lundgren
> Sent: Friday, March 21, 2008 04:49 AM
> To: r-help_at_r-project.org
> Subject: [R] R.app "incompatable" with Emacs
>
> Dear R-users on the Mac,
>
> With Leopard 10.5.2, R.app GUI 1.23, and Emacs 22.1.1 (i386-apple-
> darwin9, Carbon Version 1.6.0)
> I've got the following problem. When editing foo.R in R.app I get
> myriads of ^M (end-of-line or CR?) in the file when opened
> with Emacs. This isn't trivial to me as I shift between R.app and
> Emacs/ESS.
> Any simple tweak?
>
> Fredrik
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

########################

Fredrik Lundgren
fredrik.bg.lundgren_at_gmail.com

Obs! Ny adress och mail

Engelbrektsgatan 31
582 21 Linköping
013 - 47 30 117
0706 - 86 39 29

Sommarhus: Ljungnäs 158
380 30 Rockneby
0480 - 650 98



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 21 Mar 2008 - 17:30:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 21 Mar 2008 - 18:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive