From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id Nl06Diu8Sl8NHAAA0tVLHw (envelope-from ) for ; Sat, 29 Aug 2020 20:35:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kjWRCSu8Sl/PXAAA1q6Kng (envelope-from ) for ; Sat, 29 Aug 2020 20:35:55 +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 E8670940656 for ; Sat, 29 Aug 2020 20:35:53 +0000 (UTC) Received: from localhost ([::1]:42914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kC7Zn-0008G2-5E for larch@yhetil.org; Sat, 29 Aug 2020 16:35:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kC7ZA-0008Fq-OE for emacs-orgmode@gnu.org; Sat, 29 Aug 2020 16:35:12 -0400 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:39836) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kC7Z8-0000tr-7Z for emacs-orgmode@gnu.org; Sat, 29 Aug 2020 16:35:12 -0400 Received: from pps.filterd (m0173170.ppops.net [127.0.0.1]) by mx0a-00395d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07TKRsLK021284; Sat, 29 Aug 2020 13:35:05 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsd.edu; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=campus; bh=Cm1jmlyvqFGX/zxlTO9oEditVXEZVNgVDuuXjzRD8Ik=; b=wIHGCzk2Od7zd3iPYFhc2D/nY8Pqirgmdk1iatYwdReBOREIkRoZoScWn40ruGq8feHa N+DaZKQS0qoiO7tpGkJpWraGZA27L1ZlOmzydZVHRSMnrbyRqyILd/k63HEbqP6m18Xz F/EfUOZj9MTLhyphMFQqPvJTswkbIkMYr5J+qsTaqrUpMZB+crfKujDqtDb3d/YMF52w u8qspHJwHjOa9As58TzQzfY6nMc0IcUTIWI8cb5msHcxPjyt00wHbsQvZ/crOwP49N+1 ElqnbbHAWHkHbAlc26DDYBLSoM9wcvipuy4Zyst19bV2jNISq7Kcgn1ABT2nTfiR89sG ZA== Received: from secdlpezp05.ucsd.edu ([40.112.251.180]) by mx0a-00395d01.pphosted.com with ESMTP id 337mmmgf2h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Aug 2020 13:35:05 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L7uB1rcL4b7Dl5YkccBFQ3AmeG3Z5bgFMXVasO1czWosu5FDYZjLrnVZOhF7eqtEoTCgsIVYsrZBMhT+tYukZPnIZ4Hq/Z/ltJg+w038KaAXpUa2vZxd2vgxyLXsgDWaCUezdqSnI04ZstbPOtqmODnL7scbbA3V5P0JsmoA+iSLTCgihCvfsL+/aMWe+u35yCjVbRVcGPHLjF5CLcpxTXUX5xRTS49/zeRS7u9DJkZbQ1+RjOCcWVxBnaPOjwL0I1VckFcqR9HXxPB2UkEbetiTCdoykPotio1qDp2tRZ7jsb9EqeF1GxAlogQMF+YYd/q4AoB8V/t6dJoOw9irsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Cm1jmlyvqFGX/zxlTO9oEditVXEZVNgVDuuXjzRD8Ik=; b=dqnK7NeSHw0bg9/TQt7v8bQ4fPdanuHTMirhwNG/DEMqmawBJSfNas8UbdT0yAU2CWiM7I0aK+IiOKOVXrBEmi9XR/iEQzTYT6ud6AFerl64TCBWm2aZGXqUCvdLz+CNevYIV+C6gkCxlg27pdrRKZSWEEuihNWcg/n61MuqSde2o2wdvjL6dG+TXyOG45dyHmkXzo1CW8QGjTUQHOgLOTsQEriJ/foX4ed0WO/5BQsW2t1PKmrPMgyCGUyf28o3WJjZMLaz+ieLJbUseEwMt6L3QXwO2q5iY4ssael32983OX6Lj21KXgHn9x+MlhyCu9VRbJj1c9mGhnOPDdutpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=health.ucsd.edu; dmarc=pass action=none header.from=health.ucsd.edu; dkim=pass header.d=health.ucsd.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsdhs.onmicrosoft.com; s=selector2-ucsdhs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Cm1jmlyvqFGX/zxlTO9oEditVXEZVNgVDuuXjzRD8Ik=; b=I/7WNJgFZ3b24R/2nCab4IOCnDJzfbpL7gF/C9hV5zrUo8PbUvUpsnZNsvaLArCblW3GVl0pTD+tepKXIVkog8wvJJvVdf+k92E1LWNTDn76NyGG3+i3eanroQr08TfcW6MTvZAnbrdhyzeofF31B1BeYC0B9nJoAmYdhOXI5pk= To: Jack Kamm Subject: Re: Help debugging R source code block output problem with :session Thread-Topic: Help debugging R source code block output problem with :session Thread-Index: AQHWfkPfqMK+CyoDNkuB92Qh6UoD2g== Date: Sat, 29 Aug 2020 20:35:03 +0000 Message-ID: <352C7149-743F-4944-ACA5-7A1242B5A3AA@health.ucsd.edu> References: <87r1rqled0.fsf@havana> <87k0xifa9h.fsf@gmail.com> <87d03art6a.fsf@havana> <87h7slgbi5.fsf@gmail.com> In-Reply-To: <87h7slgbi5.fsf@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2600:1702:1021:b0:8935:22fb:32e0:79a1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a570cf30-f5e3-40f0-2012-08d84c5b0252 x-ms-traffictypediagnostic: BY5PR19MB3110: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dsXtx+Hf/U9Up8kRAfFN3mdjENoD205x34ev6c+2Of7v7LC5umWniXZsV0/j7ktojmE7BaWzoxeDwqiJ+HQzyI4EJPk90Yqj9Me4jrUBl57gFp2YzbWvUnGZH0jeY9iMqGogWRixwTmFJjdiz6+RKxmZlPX+4Xs041JaxVZFFyVSFxGt6ZOQ+f8S1nZyGCB16Za5h7K7oeh2+ADCBOuCupbqS38FlSK8xO0y7Gyktokdu6sNzgUIrfPbDz9zU8EfJM/3W8gphLCJGieoiGeN4WgpubqukEZPjyuNZB99d0QiHQRxCGmtUw4mNwbePujftr7ZOecws2L2x2F1IIDt1A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR19MB2888.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(136003)(346002)(39850400004)(376002)(6512007)(4326008)(33656002)(6486002)(2616005)(64756008)(8936002)(186003)(66476007)(66946007)(71200400001)(76116006)(8676002)(66446008)(86362001)(5660300002)(66556008)(6916009)(75432002)(83380400001)(54906003)(316002)(478600001)(6506007)(2906002)(53546011)(786003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: TOIFVKE26QMw2oECta4oAYS6evpzihGZjMMjqOd8IBhQOlrIJZ1qqbAxbdFOy6k2rOUAr68FlbTSoq2W7Dt3FGJtviSw7N7Y2Y+Ux3zn7fIBSNJiUsDG+E/7t0aKobe0t7Wlm4eQ9ZoxThZkr+gTBUnMRanSDSn5y9wa9zaJDBdBrrFGn5upjAfctZwhrGiruVpcSWUmqkGpmPpyK6NVJS6kTDlY7v0C6tFOkJNp0zgvi8KIB+uEQvvBSHQ0jspTyUJELgjZ5G7rXEhnKuqsb5V0HPvon3CLH3e4SHIp/gKRX1BZX8UEHNiOnk/CH9U3YQIrgnAeXV969lfjKGebKIJTOLlXRJK/v2AU6yzkgRpRBW2G86MIJqXh7pi9RpCuMKPSinheVXwra3ilNJ7FVYQxCygYxDuKfl4yJGq1rGYJ5whUhx7Upm7+k+aQg8tOOThSryxKA96Y4pjiYGuix6wCvOKOvYrdEwgPug5N7dvfJcYyYpaMrNCXXiAWihf2VOhPHEFLz22Ciq1sFLRjBXi5lNWAfQO9d7Zyjsk2ltIerVt1SyBANAi0HIKCqqsa+A12dpyl9TjWEFZOjiPYyaMR1e0k42NAZooD2df+sEmKqR1eLYua2pwVFapGx1Vb3iOTcXBZfiDNE4XsbnAVDN06kI5ps78V68vI/MfFnehp7H4rUax1chs8WIKVhzj4QEmgqxhxZCp8e8qCUjaRQA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <3437EFAA9888954490D8FDDE86A547F6@namprd19.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: health.ucsd.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR19MB2888.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a570cf30-f5e3-40f0-2012-08d84c5b0252 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Aug 2020 20:35:03.5857 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e470d736-e7f7-41a8-8eab-dad544b2b579 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: XkYDKjQS3QKkiOmFD+FmEgfzXOxZrVr871kJK9+rOyZgYVimnZh6IN/LLc2/XXgCOZ4Y74Lo4wtEk14M0mx45w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR19MB3110 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-08-29_14:2020-08-28, 2020-08-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1011 phishscore=0 spamscore=0 mlxscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 bulkscore=0 mlxlogscore=728 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008290165 Received-SPF: pass client-ip=148.163.133.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0a-00395d01.pphosted.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/29 16:35:06 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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" , Dylan Schwilk Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" Reply-to: "Berry, Charles" From: "Berry, Charles" via "General discussions about Org-mode." X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=ucsd.edu header.s=campus header.b=wIHGCzk2; dkim=fail (rsa verify failed) header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=I/7WNJgF; 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: 1.99 X-TUID: FGBWOxwOVaog This problem has been bugging people for years and previous attempts to sol= ve it have always run up against creating more problems in the process of s= olving this one. This workaround gives the same results with or without `:session "NEW"' and= same as OPs first src block: #+header: :prologue "capture.output({" :epilogue "})" #+begin_src R :results value verbatim :session "NEW"=20 print(" ") print("one three") print("end") #+end_src If you do decide to dig into solving this, please be sure that remote sessi= ons and graphical outputs are not broken. test-ob-R.el does not cover thos= e cases. In fact, it is pretty short, so there are probably other things t= hat could break without `make test' complaining. HTH, Chuck > On Aug 29, 2020, at 12:24 AM, Jack Kamm wrote: >=20 > Hi Dylan, >=20 >> The patch does fix that issue -- but it introduces a different bug=20 >> for code blocks with ~:session~: the R block now only produces=20 >> output from the last statement evaluated. >=20 > Of course, you're right. Good catch. >=20 > Here's another attempt. It fixes the issue by modifying the R comint > regular expression, requiring it to match at the beginning of the line.