From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id NgxLMLTUSV+JJAAA0tVLHw (envelope-from ) for ; Sat, 29 Aug 2020 04:08:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mJGlK7TUSV8JbAAAB5/wlQ (envelope-from ) for ; Sat, 29 Aug 2020 04:08:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4759E9402CB for ; Sat, 29 Aug 2020 04:08:20 +0000 (UTC) Received: from localhost ([::1]:45000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBsA5-0001BF-KN for larch@yhetil.org; Sat, 29 Aug 2020 00:08:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBs9h-0001B7-RG for emacs-orgmode@gnu.org; Sat, 29 Aug 2020 00:07:53 -0400 Received: from aibo.runbox.com ([91.220.196.211]:51238) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBs9g-0000RT-0n for emacs-orgmode@gnu.org; Sat, 29 Aug 2020 00:07:53 -0400 Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1kBs9c-0002yg-L1; Sat, 29 Aug 2020 06:07:48 +0200 Received: by submission01.runbox with esmtpsa [Authenticated alias (611856)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1kBs9X-0006Wy-Vw; Sat, 29 Aug 2020 06:07:44 +0200 References: <87r1rqled0.fsf@havana> <87k0xifa9h.fsf@gmail.com> User-agent: mu4e 1.4.3; emacs 26.3 From: Dylan Schwilk To: Jack Kamm Subject: Re: Help debugging R source code block output problem with :session In-reply-to: <87k0xifa9h.fsf@gmail.com> Date: Fri, 28 Aug 2020 23:07:41 -0500 Message-ID: <87d03art6a.fsf@havana> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: permerror client-ip=91.220.196.211; envelope-from=dylan@schwilk.org; helo=aibo.runbox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/29 00:07:49 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: ZFdx7CCqgcFr Hi Jack, The patch does fix that issue -- but it introduces a different bug for code blocks with ~:session~: the R block now only produces output from the last statement evaluated. #+begin_src R :results output :exports both :session 4.0 * 3.5 log(10) # natural log log10(10) (3 + 1) * 5 3^-1 1/0 #+end_src #+results: : [1] Inf Without the ~:session header~ the output is as it was before the patch: #+results: : [1] 14 : [1] 2.302585 : [1] 1 : [1] 20 : [1] 0.3333333 : [1] Inf -Dylan