From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: Re: [babel] R - variable names in summary Date: Wed, 09 Dec 2009 15:49:52 -0500 Message-ID: References: <2c75873c0912081550m5da3861fgb3a14f047f8638ae@mail.gmail.com> <87k4wwf6h1.fsf@stats.ox.ac.uk> <2c75873c0912090905y5d673fe3m879e7e79e77f3c89@mail.gmail.com> <87vdggdkob.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1399711326==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NITUe-00014N-3I for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 15:50:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NITUZ-000138-6L for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 15:50:39 -0500 Received: from [199.232.76.173] (port=48300 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NITUY-000135-UD for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 15:50:34 -0500 Received: from lo.gmane.org ([80.91.229.12]:35849) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NITUY-0004Hg-Ab for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 15:50:34 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NITUL-00026k-MD for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 21:50:21 +0100 Received: from colossus.cvs.rochester.edu ([128.151.80.181]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Dec 2009 21:50:21 +0100 Received: from austin.frank by colossus.cvs.rochester.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Dec 2009 21:50:21 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1399711326== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, Dec 09 2009, Dan Davison wrote: > Graham Smith writes: >> Next question is is to do with output with things like summary. In R >> if you have lots of variables,the output wraps so it fits on the >> screen. With babel it runs off the edge of the page. is there a quick >> way of getting the output to fit an anticipated a4 pdf output. > > I'd suggest using :results output, and controlling the width of the > output with options(width=3Dwhatever) in R. E.g. > > #+begin_src R :session babeltest :colnames t :results output > options(width=3D80) > summary(cbind(babeltest, babeltest)) > #+end_src I don't know whether this will end up fitting into your setup, but there's an emacs function `ess-execute-screen-options' that does what Dan just suggested on a per-session basis taking the width of the current buffer into account. Even if it doesn't help with org-bable, it makes life in ESS much pleasanter. You can also look at the latex() function in the R package Hmisc and the function xtable() from the R package xtable. For data frames, matrices, and some common summary functions, these functions will create a latex table out of your R object. Maybe Dan can suggest how latex code generated in R could be properly included and typeset in org-babel. HTH, /au =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAksgDXEACgkQlHMl2/XbR4EukwCffUzJD3Re6/Gh0F/4Eu0FHV6V RU8AoKAk3p4SNsdVFGF1rSHxcg6ctFmU =KihG -----END PGP SIGNATURE----- --=-=-=-- --===============1399711326== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1399711326==--