Re: [R] Suppressing final spaces in data.frame printouts

2009-11-11 Thread Stavros Macrakis
<> Thanks! So I guess you're suggesting something like (add-hook 'comint-output-filter-functions (lambda (s) (save-restriction (narrow-to-region comint-last-output-start (+ -1 (process-mark (get-buffer-process (current-buffer) ;; stop o

Re: [R] Suppressing final spaces in data.frame printouts

2009-11-11 Thread Stavros Macrakis
Thanks for the suggestion. I'mm familiar with the truncate-lines variable, but that's not quite what I was looking for. I don't want the padding spaces displayed, but I do want to see long strings at the end of the line. Thanks anyway, -s On Wed, Nov 11, 2009 at 5:40 PM, Richard

Re: [R] Suppressing final spaces in data.frame printouts

2009-11-11 Thread RICHARD M. HEIBERGER
On Wed, Nov 11, 2009 at 8:12 PM, Stavros Macrakis wrote: > Thanks for the suggestion. I'mm familiar with the truncate-lines variable, > but that's not quite what I was looking for. I don't want the padding > spaces displayed, but I do want to see long strings at the end of the line. Then we can

Re: [R] Suppressing final spaces in data.frame printouts

2009-11-11 Thread Richard M. Heiberger
Stavros Macrakis wrote: I could of course write my own print function for this, but was wondering if there was a standard way of doing it. If not in R, perhaps there is some way to have ESS delete the final spaces? ESS, or more precisely emacs, can handle that. Use the M-x toggle-truncate-l