[ESS] Starting evaluation... hangs
Gregor Gorjanc
gregor.gorjanc at bfro.uni-lj.si
Tue Mar 28 09:03:21 CEST 2006
Hi,
Martin Maechler wrote:
> Thank you, Gregor, for your clarifications.
>
> It would have been better had they also gone to ESS-help, not
> just to me.
Argh, it seems that I do this very often when I mail with you as seen
here and on R-devel. Strange. I appologize for this.
> Just to confirm you: UTF-8 should not be a problem for current
> versions of ESS at all in our experience.
> [ ESS 5.2.x (x < 10) did need a patch more than a year ago,
> in order to correctly work with UTF-8 and "R in UTF-8" ;
> but as said, this has been quite a while ago]
Yes, I also noticed that in ESS manual. Any further clues to debug/solve
my issue?
Thanks!
>>>>>>"Gregor" == Gregor Gorjanc <gregor.gorjanc at gmail.com>
>>>>>> on Mon, 27 Mar 2006 23:17:13 +0200 writes:
>
>
> Gregor> Martin Maechler wrote:
> >>>>>>> "Gregor" == Gregor Gorjanc <gregor.gorjanc at gmail.com>
> >>>>>>> on Sun, 26 Mar 2006 21:19:01 +0200 writes:
> >>
> >>
> Gregor> Richard M. Heiberger wrote:
> >> >> Which computer, operating system version, emacs version?
> >> >>
> >>
> Gregor> OS? $ uname -a Linux omni_grega 2.6.11-1-686 #1 Mon
> Gregor> Jun 20 22:00:38 MDT 2005 i686 GNU/Linux
> >>
> Gregor> Emacs? - I get this message when I click on "Show
> Gregor> Emacs version" GNU Emacs 21.4.1 (i486-pc-linux-gnu,
> Gregor> X toolkit, Xawd3d scroll bars) of 2005-10-03 on
> Gregor> trouble, modified by debian
> >>
> >> >> I just ran your example on Windows XP with ESS-5.2.12 and
> >> >> GNU emacs 21.3.50.1 and all worked well.
> >> >>
> >> >> Rich
> >>
> Gregor> How can I debug my problem?
> >>
> >> Hmm, the behavior you see, Gregor, is quite strange.
> >> "Of course", your example also runs nicely and smoothly for me
> >> {Linux Redhat & Debian; Emacs 21.4 and 21.3}.
> >>
> >> I think we have heard of problems like yours for Xemacs users,
> >> but not GNU emacs..
> >>
> >> Could it be that your *.R buffer (in which you select the region
> >> via C-c C-r) is in a "strange" encoding where the spaces in
> >>
> >> tmp <- data.frame(m1 = y[1:40],
> >> m2 = y[41:80],
> >> m3 = y[81:120],
> >> m4 = y[121:160],
> >> s1 = s[1:40],
> >> s2 = s[41:80],
> >> s3 = s[81:120],
> >> s4 = s[121:160])
> >>
> >> are encoded as peculiar UTF-8 codes or ..?
>
> Gregor> Martin thanks for this pointers.
>
> Gregor> I do have u sign in modeline, which should indicate UTF-8 encoding and I
> Gregor> get this from use of the following in '.emacs' file.
>
> Gregor> (set-language-environment "UTF-8")
>
> Gregor> However this part does not have any characters which are not in ASCII
> Gregor> set. Does ESS have any problems with UTF-8? I have the following LC* set
> Gregor> in my bash shell
>
> Gregor> LANGUAGE=en_GB.UTF-8
> Gregor> LC_ALL=en_GB.UTF-8
>
> >> Call the file ex.R and try in a shell
> >>
> >> tr -d '\-.,<=:)(][[:alnum:]' < ~/R/qq.R | od -a
> >>
> >> you should only get 'sp' (ASCII space) and 'nl' (newline)
> >>
>
> Gregor> I have. I get only 'sp' and 'nl'.
>
> Gregor> $ tr -d '\-.,<=:)(][[:alnum:]' < test.R | od -a
> Gregor> 0000000 sp sp sp sp sp sp sp sp sp sp nl sp sp sp sp sp
> Gregor> 0000020 sp sp sp nl nl sp sp sp sp nl sp sp sp sp sp sp
> Gregor> 0000040 sp sp sp sp sp sp sp sp sp sp sp sp sp sp nl sp
> Gregor> 0000060 sp sp sp sp sp sp sp sp sp sp sp sp sp sp sp sp
> Gregor> 0000100 sp sp sp nl sp sp sp sp sp sp sp sp sp sp sp sp
> Gregor> 0000120 sp sp sp sp sp sp sp sp nl sp sp sp sp sp sp sp
> Gregor> 0000140 sp sp sp sp sp sp sp sp sp sp sp sp sp nl sp sp
> Gregor> 0000160 sp sp sp sp sp sp sp sp sp sp sp sp sp sp sp sp
> Gregor> 0000200 sp sp nl sp sp sp sp sp sp sp sp sp sp sp sp sp
> Gregor> 0000220 sp sp sp sp sp sp sp nl sp sp sp sp sp sp sp sp
> Gregor> 0000240 sp sp sp sp sp sp sp sp sp sp sp sp nl
> Gregor> 0000255
>
> Gregor> I also tried with command file and it prints ASCII
>
> Gregor> $ file test.R
> Gregor> test.R: ASCII text
>
> Gregor> but if I open this file and write some peculiar characters in it, which
> Gregor> are not in standard ASCII set, file says this is UTF-8, as it should.
>
> Gregor> $ file test.R
> Gregor> test.R: UTF-8 Unicode text
>
> Gregor> --
> Gregor> Lep pozdrav / With regards,
> Gregor> Gregor Gorjanc
>
> Gregor> ----------------------------------------------------------------------
> Gregor> University of Ljubljana PhD student
> Gregor> Biotechnical Faculty
> Gregor> Zootechnical Department URI: http://www.bfro.uni-lj.si/MR/ggorjan
> Gregor> Groblje 3 mail: gregor.gorjanc <at> bfro.uni-lj.si
>
> Gregor> SI-1230 Domzale tel: +386 (0)1 72 17 861
> Gregor> Slovenia, Europe fax: +386 (0)1 72 17 888
>
> Gregor> ----------------------------------------------------------------------
> Gregor> "One must learn by doing the thing; for though you think you know it,
> Gregor> you have no certainty until you try." Sophocles ~ 450 B.C.
> Gregor> ----------------------------------------------------------------------
--
Lep pozdrav / With regards,
Gregor Gorjanc
----------------------------------------------------------------------
University of Ljubljana PhD student
Biotechnical Faculty
Zootechnical Department URI: http://www.bfro.uni-lj.si/MR/ggorjan
Groblje 3 mail: gregor.gorjanc <at> bfro.uni-lj.si
SI-1230 Domzale tel: +386 (0)1 72 17 861
Slovenia, Europe fax: +386 (0)1 72 17 888
----------------------------------------------------------------------
"One must learn by doing the thing; for though you think you know it,
you have no certainty until you try." Sophocles ~ 450 B.C.
More information about the ESS-help
mailing list