[ESS] Why can't I load attached R file?
Martin Maechler
maechler at stat.math.ethz.ch
Fri Jul 16 09:17:23 CEST 2010
>>>>> "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
o the *hang*ing only happens with the "!" ending.
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).
Martin
HeinzT> At 15.07.2010 12:01 +0200, Rainer M Krug wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> 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
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.10 (GNU/Linux)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAkw+3GQACgkQoYgNqgF2egq8+ACfWO2UtpTCy9I9xWCLt4BMjYmY
>> 4bkAoIUzmMcnuS1ASH4q0KC8uApiyhgR
>> =5ALB
>> -----END PGP SIGNATURE-----
>>
>> ______________________________________________
>> 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
More information about the ESS-help
mailing list