stephen sefick
2024-Sep-11 13:44 UTC
[R] Stop or limit to console printing large list and so on
Hello All: Background/setup: Editor Emacs using "isend" to send code to shell in another window. This is on Linux. I can share more of the setup if others would find it useful, but I suspect this is an option I am unaware of. Problem: I am having a problem with accidentally typing an object name at the console that is a very large list and then having to wait for it to be printed until I can resume my work. Is there a way that I have missed to stem this default behavior? Kindest regards, Stephen Sefick [[alternative HTML version deleted]]
Hello Stephen. I am not sure of the exact details of your problem, but following the second part of your e-mail, if you accidentally print a large object in the console and do not want to wait (i.e. you want to stop printing), just press C-c C-c and it will stop it (it will stop any process happening in the console, the same if you send a loong loop and want to abort...) cheers F. On 9/11/24 15:44, stephen sefick wrote:> Stephen Sefick
Ivan Krylov
2024-Sep-11 15:47 UTC
[R] Stop or limit to console printing large list and so on
? Wed, 11 Sep 2024 09:44:05 -0400 stephen sefick <ssefick at gmail.com> ?????:> I am having a problem with accidentally typing an object name at the > console that is a very large list and then having to wait for it to be > printed until I can resume my work.Does it help to interrupt the process? https://www.gnu.org/software/emacs/manual/html_mono/emacs.html#index-C_002dc-C_002dc-_0028Shell-mode_0029 https://ess.r-project.org/Manual/ess.html#index-interrupting-R-commands I'm afraid that the behaviour of the print() method is very class-dependent and limiting options(max.print=...) may not help in your case. -- Best regards, Ivan