query for large object display

Ben Shoemaker shoemake at ncbi.nlm.nih.gov
Tue Jan 15 17:46:44 CET 2002


Rodney,

Not necessarily.  These are S objects residing in .Data/ that could've
been read from file or created from other S objects.  If I start an S
session, I don't need to open any files if I have a large object already
in my .Data/.  Then if I (accidentally) type the object name at the S
prompt, I get the large dump.

--Ben

On Tue, 15 Jan 2002, Rodney Sparapani wrote:

> Ben:
>
> Are you loading these objects from a large file?
>
> Rodney
>
> >Date: Tue, 15 Jan 2002 11:23:40 -0500 (EST)
> >From: Ben Shoemaker <shoemake at ncbi.nlm.nih.gov>
> >X-X-Sender: shoemake at scarecrow
> >To: Rodney Sparapani <rsparapa at post.its.mcw.edu>
> >cc: ess-help at stat.math.ethz.ch
> >Subject: Re: query for large object display
> >MIME-Version: 1.0
> >
> >
> >Rodney,
> >
> >Thanks for your quick reply!  Unfortunately, that didn't seem to work for
> >me.  I added the lines below to my .emacs file and when I restarted xemacs
> >it complained:
> >
> >Warning: reference to free variable filename
> >Warning: assignment to free variable filename
> >
> >I went ahead and tried typing the name of a large object, but again it
> >hung up my xemacs.
> >
> >Any ideas what I'm doing wrong?
> >
> >--Ben
> >
> >On Tue, 15 Jan 2002, Rodney Sparapani wrote:
> >
> >> Ben:
> >>
> >> Not by default.  But, I run into this problem all the time so I have the
> >> following in my .emacs:
> >>
> >> (defvar big-file-limit 400000)
> >>
> >> (defadvice find-file (before huge-file-protection activate)
> >>   (let* ((big-file-list (file-attributes filename))
> >>          (big-file-size (nth 7 big-file-list)))
> >>
> >>   (if big-file-list
> >>      (progn
> >>       (if (or (equal big-file-size -1) (> big-file-size big-file-limit))
> (progn
> >>         (shell-command (concat "head -10000 " filename " > " filename "00"))
> >>       (message "WARNING: only showing first 10000 lines of %s." filename)
> >>       (setq filename (concat filename "00"))))))
> >> ))
> >>
> >> Rodney
> >>
> >> >Date: Tue, 15 Jan 2002 11:03:25 -0500 (EST)
> >> >From: Ben Shoemaker <shoemake at ncbi.nlm.nih.gov>
> >> >X-X-Sender: shoemake at scarecrow
> >> >To: ess-help at stat.math.ethz.ch
> >> >Subject: query for large object display
> >> >MIME-Version: 1.0
> >> >
> >> >
> >> >Hi,
> >> >
> >> >I use ESS version 5.1.19 in xemacs 20.4 and am very happy with it.
> >> >Occasionally, however, I type an object's name and forget to explore first
> >> >if it's a large object.  If it is, it causes xemacs to freeze up,
> >> >sometimes indefinitely while it's trying to dump all of the data to the
> >> >buffer.  Is there a variable to set which would query yes/no (or simply
> >> >refuse to do it) if the object is beyond a certain size?
> >> >
> >> >Thanks in advance,
> >> >
> >> >Ben
> >> >
> >> >
> >>
> >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> >> >ess-help mailing list -- To (un)subscribe, send
> >> >subscribe	or	unsubscribe
> >> >(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
> >>
> >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> >>
> >> Rodney Sparapani              Medical College of Wisconsin
> >> Sr. Biostatistician           Patient Care & Outcomes Research (PCOR)
> >> rsparapa at mcw.edu              http://www.mcw.edu/pcor
> >> Was 'Name That Tune' rigged?  WWLD -- What Would Lombardi Do
> >>
> >
>
> Rodney Sparapani              Medical College of Wisconsin
> Sr. Biostatistician           Patient Care & Outcomes Research (PCOR)
> rsparapa at mcw.edu              http://www.mcw.edu/pcor
> Was 'Name That Tune' rigged?  WWLD -- What Would Lombardi Do
>


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list