On Sunday, August 18, 2013, Igor Sosa Mayor wrote:

> Am Sat, Aug 17, 2013 at 01:40:38PM +0200, Vitalie Spinu wrote:
>
> > Copy a region with M-w and then yank with C-u C-u C-y into ess
> > buffers. The pasted text is automatically cleaned of output. This is
> > handy if you paste code from iESS, mail buffers or pdf documents.
>
> thanks a lot. This is very helpful indeed.
>
> But, I think I did not explain well what I meant. Sometimes the iESS
> buffer has a lot of stuff I dont want to see anymore. I'm just looking
> for a way to say ESS: `clean up the iESS buffer from outputs, but don't
> remove the commands'.
>
> I don't think there is a fully automated direct way for this.
You can however move forward and backward in *R* (the iESS buffer for me)
 with
C-c C-p  and C-c C-n  (previous / next  "prompt"), use the usual Emacs
(C-[space]) to mark and
the usual C-w to kill.  That way you can very quickly remove large chunks
from *R*  .. though you have to look for yourself *what* is left and what
is deleted.

OTOH, my work flow however helps to not get so  large cluttered buffers:
Immediately after  a   > my.long.printing.function(...)
you can say  C-c C-o   which cleans all the output from
 my.long.printing.function() but keeps the call in the *R* buffer.
In older versions of ESS, I had been able to also apply  C-c C-o  to older
output chunks (i.e. when having moved backwards with C-c C-p)  but the
current version of ESS seems to no longer support this.
[@Vitalie : please consider this to be a bug report from your fellow ESS
corer...]

Martin

Many thanks in advance.
>
> --
> :: Igor Sosa Mayor     :: joseleopoldo1792@gmail.com <javascript:;> ::
> :: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/      ::
> :: jabberid: rogorido  ::                            ::
>
> ______________________________________________
> ESS-help@r-project.org <javascript:;> mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
>

	[[alternative HTML version deleted]]

