From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephan Lindner Subject: No results when combining :session *R* with print.xtable Date: Thu, 10 Mar 2016 19:11:47 +0000 Message-ID: <87bn6mtafl.fsf@ohsu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae606-0008V5-Of for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 14:11:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ae603-0006aB-Id for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 14:11:58 -0500 Received: from twedge01.ohsu.edu ([137.53.6.162]:35454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae603-0006Zy-Bn for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 14:11:55 -0500 Received: from twapp02.ohsu.edu (ace-app2edge-out-vip.ohsu.edu [10.76.7.12]) by twedge01.ohsu.edu (Axway MailGate 5.5.1) with ESMTP id 281F55A8104 for ; Thu, 10 Mar 2016 11:11:45 -0800 (PST) Received: from EXHT02.ohsu.edu (ace-hub2app-out-vip.ohsu.edu [10.76.7.14]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by twapp02.ohsu.edu (Axway MailGate 5.5.1) with ESMTPS id 2DBEC5A95B38 for ; Thu, 10 Mar 2016 11:11:44 -0800 (PST) Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" Hi, I encounter the following problem (org version 8.3.2): When I have the following R source code block in my org file: #+BEGIN_SRC R :exports results :results replace output latex :eval export library(xtable) print(xtable(matrix(c(1,2,3), nrow=3D1)), only.contents=3DTRUE, include.rownames=3DFALSE, include.colname= s=3DFALSE, comment=3DFALSE, hline.after=3DNULL) #+END_SRC and I evaluate it, I get the expected result: #+RESULTS: #+BEGIN_LaTeX 1.00 & 2.00 & 3.00 \\=20 #+END_LaTeX However, when I also include the =3D:session *R*=3D in my header, I get thi= s:=20 #+BEGIN_SRC R :session *R* :exports results :results replace output latex := eval export library(xtable) print(xtable(matrix(c(1,2,3), nrow=3D1)), only.contents=3DTRUE, include.rownames=3DFALSE, include.colname= s=3DFALSE, comment=3DFALSE, hline.after=3DNULL) #+END_SRC #+RESULTS: #+BEGIN_LaTeX #+END_LaTeX I.e., no result. However, when evaluating the code in R it works (i.e., R p= rints out =3D1.00 & 2.00 & 3.00 \\=3D). I need to have =3D:session *R*=3D in the header because I want to print res= ults of previous calculations in R. I would like to not have =3D\hlines=3D in my LaTeX output (I integrate the result into a= LaTeX table). This problem does not occur when I set =3Dhline.after=3D to a non-NULL valu= e, e.g.: #+BEGIN_SRC R :session *R* :exports results :results replace output latex := eval export library(xtable) print(xtable(matrix(c(1,2,3), nrow=3D1)), only.contents=3DTRUE, include.rownames=3DFALSE, include.colname= s=3DFALSE, comment=3DFALSE, hline.after=3D1) #+END_SRC #+RESULTS: #+BEGIN_LaTeX 1.00 & 2.00 & 3.00 \\=20 \hline #+END_LaTeX Thanks! Stephan=20 --=20 Stephan Lindner, Ph.D. Oregon Health and Science University=