[ESS] Why can't I load attached R file?
Rainer M Krug
r.m.krug at gmail.com
Fri Jul 16 09:26:58 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Martin
On 16/07/2010 09:17, Martin Maechler wrote:
>>>>>> "HeinzT" == Heinz Tuechler <tuechler at gmx.at>
>>>>>> on Fri, 16 Jul 2010 07:45:44 +0100 writes:
>
> HeinzT> The same problem for me with Emacs 21.3.1 and ESS 5.3.3
>
> thank you for the confirmation.
>
> "Of course" -- in hindsight --
>
> As you've found,
> o it only happens if you forget the final "\n" in your print
> statements.
> And yes, it has been known that you can confuse ESS
> (and other simple [G]UI's as well, IIRC) to some extent
> if you produce output not ending in a new line
>
OK - good to know - then I an work around this problem.
> o the *hang*ing only happens with the "!" ending.
Might be a misunderstanding, but it also happens with
cat("!Done")
where the ! is at the beginning of the string.
>
> I don't have time now, but "of course" this must be related
> to our magic handling of "!" (in the old Unix and S tradition)
> for command recall.
>
> I agree that this is a bug we (ESS core) must address...
> (but not before 'useR!' next week).
Don't worry - I just stumbled over it when drawing up a small example
for demonstrating a few things.
Thanks for all your help,
Rainer
>
> Martin
>
> HeinzT> At 15.07.2010 12:01 +0200, Rainer M Krug wrote:
> On 15/07/2010 11:53, Stephen Eglen wrote:
>>>
>>> Debugger entered--Lisp error: (quit)
>>> accept-process-output(#<process R> 0 500)
>>> ess-prompt-wait(#<process R> nil nil)
>>> ess-command("source(\"/home/rkrug/tmp/R.att.R\")\n" #<buffer
>>> *ESS-errors*>)
>>> ess-load-file("/home/rkrug/tmp/R.att.R")
>>> call-interactively(ess-load-file nil nil)
>
>> Thanks, sorry - my mistake, I thought you meant 'load' as in visit the
>> file, but you (rightly) meant ess-load-file. Yes, I see the error that
>> you do. Is it anything to do with missing \n from the cat statement?
>> Probably the code that looks for the prompt is getting confused.
>
>> i.e this works
>
>> cat("Done!!!")
>> cat("\n")
>
> Yup - that is the problem.
>
> But the problem is the "!". If I have
>
> cat("Done")
>
> and ess-load-file the fie, it works.
>
> Can somebody confirm that behaviour, or is it strangely only on my computer?
>
> Versions:
>
> Ess 5.11
> GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
>
> Rainer
>
>
>
>> Stephen
>
______________________________________________
ESS-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
> HeinzT> ______________________________________________
> HeinzT> ESS-help at stat.math.ethz.ch mailing list
> HeinzT> https://stat.ethz.ch/mailman/listinfo/ess-help
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxACcIACgkQoYgNqgF2egpaswCffYmiAKq4rKd7RB/0xWcQ4CEQ
gcAAnAroob9rCUNKwRB0K1gGrd5zl/DQ
=iR3O
-----END PGP SIGNATURE-----
More information about the ESS-help
mailing list