[ESS] Can not interrupt long printing
Douglas Bates
bates at stat.wisc.edu
Thu Jun 21 15:51:03 CEST 2012
Why not use
str(x)
before asking for a display of the complete object? The str function,
written by Martin, provides a concise overview of any R object. Other
alternatives for data frames in particular are
head(x, n) # display the first n rows, the default for n is 6
and
tail(x, n)
On Thu, Jun 21, 2012 at 7:09 AM, Rainer M Krug <r.m.krug at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
> I sometimes want to see an object / dataframe (lets call it x) in R and, only after issuing the
> command to print it(> x), that it x is a HUGE dataframe and it takes literally minutes to print. I
> am not able to interrupt the printing with Ctrl-c as I used to be, as the cursor is in the middle
> of the screen and not at the end of the output. Interrupting via the menu also does not work ("No
> command on this line"). The only thing I can do is either wait or kill R
>
> Is it possible to make sure that the cursor stays at the end of the output, so that I can
> interrupt the printing?
> Thanks,
>
> Rainer
>
> - --
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
> (Germany)
>
> Centre of Excellence for Invasion Biology
> Stellenbosch University
> South Africa
>
> Tel : +33 - (0)9 53 10 27 44
> Cell: +33 - (0)6 85 62 59 98
> Fax : +33 - (0)9 58 10 27 44
>
> Fax (D): +49 - (0)3 21 21 25 22 44
>
> email: Rainer at krugs.de
>
> Skype: RMkrug
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk/jDuIACgkQoYgNqgF2egoAvACeP8qOs19jTBZNEYmMq0ycAzNu
> TKEAnRJ5UW4NHdhmj9B4gPdEyXKxUMsp
> =rxq0
> -----END PGP SIGNATURE-----
>
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list