From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mMStCZNdU2G3egEAgWs5BA (envelope-from ) for ; Tue, 28 Sep 2021 20:23:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iDFaBZNdU2H9MgAAB5/wlQ (envelope-from ) for ; Tue, 28 Sep 2021 18:23:15 +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 66BE711307 for ; Tue, 28 Sep 2021 20:23:14 +0200 (CEST) Received: from localhost ([::1]:53914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVHl2-00073K-Fm for larch@yhetil.org; Tue, 28 Sep 2021 14:23:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVHk8-00073B-Nf for emacs-orgmode@gnu.org; Tue, 28 Sep 2021 14:22:16 -0400 Received: from mx0b-00395d01.pphosted.com ([148.163.137.170]:55040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVHk6-0001tg-CB for emacs-orgmode@gnu.org; Tue, 28 Sep 2021 14:22:16 -0400 Received: from pps.filterd (m0173174.ppops.net [127.0.0.1]) by mx0b-00395d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18SGAprk009219; Tue, 28 Sep 2021 18:22:11 GMT 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=mJby9d5yH9C+ViKTq/nj+nbgLOmirk4G/AXzut32KOQ=; b=aCPfyGmlz89CQSbJhNY3Kt+XJ/6ZthLZsXELM3Z8gF3JH6ojUFFlNmqrtDDaaxoMJuRl aQh+ox/QynZwSK96v/Y0HYdFe1mIKCKcmXj+iMVFwpBwFGjcpVAYpUCpIXZsORdnMBVY pWZw7EX8tf/pthqSdhDmSw6TW8MC0UJxkEwxioWTG+zDDhC3szCaY8IggxO+tBC/4fM9 kkf2N7Z6819YUApPfzJCZhLfbkBLCq2WdTkSrbHOMypsVjn1M2sPIRH2BPc6JDOzOSbZ j6yvxO1FGxgL42u5fmQNJYFCW05vDLgCyIiZwUst2D7D4b+4/kMxbUYjpfbT37lD+xaP oQ== Received: from secdlpezp05.ucsd.edu ([40.112.251.180]) by mx0b-00395d01.pphosted.com with ESMTP id 3bc6bh8fkw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Sep 2021 18:22:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RPQqrLENLtLOKbB07e15+4sTcorSLiwZC6VhGoZYT/vsHERooVE0fVFHplbogE5Box04yBY2zUOx6JQ9pVbZTczLSrHCJCdwk1Mvg3Z3aOVAJsvASxDJQ+GJFPh+uIm55XtwxhAqYEE2UsNZuk9gbhrb/V1DRiQYVXC887Ffe8T8AE+wzGaxuOyd7frc3dv1BbFpwP8s0KB/vWb05dz8t9UeJAKZYmlqpSQKOB7Pacf1IGM6odZRiVOn9vFgWiNEmYSiCyg4ATFfV2PEgxKiaBaNADrd4IAw6knE+wEp+KjAJxCD6FYmymbc7wK+gDrKeQ/TOvf0Q6OOI/DkE9OwXg== 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; bh=mJby9d5yH9C+ViKTq/nj+nbgLOmirk4G/AXzut32KOQ=; b=OtfZ4z/IVOctbCh1yHVb8k4kNDzx3WOqX5C87tr7jWX67nlzCe4BjcLSU97nXPSg1YrYQT/uu6VQrM9M5Q79yOW2dus3sIfCfi+id6VJ13HIHijgviBQxPWbhtQOIAXkp3TkLGDGX/j+J2Yjn4xIMCGvZCdhOvnpNBcZV5ci0AqX+baV4I4m0t5N4SMPHpFGmcRpz8Cx5WS67sKdNEPeKuLoyxym3PEieHU21/KAgXYcme/Vv5vg35M+4qtpwP8k91WUX0HGynmOqi9v2wHMEMlb2+PdmI6xHFDd/fpqJEpa8US6CZWhj7vk3zq8PtYIoU0aqy1z1QLo2sHrpIgRtw== 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=mJby9d5yH9C+ViKTq/nj+nbgLOmirk4G/AXzut32KOQ=; b=z8jSYRS2MDm1dsXEE3GuQtnxGR+3GnHFcrXtnrbXq3cvcCXu7FIdUO6z/6q9nT3+v6gZMCPTfPlbjzSpnSaU7e950S0DjUcQ9wT+rSAKvgBJiQqlchZHaJhVhIyqdFLC8SYDVq0wdwXHqZyYscicZnHNMAogUCd9tW3DXenA+7Y= To: Jeremie Juste Subject: Re: [PATCH] async process in R Thread-Topic: [PATCH] async process in R Thread-Index: AQHXsvnJzoCj4BxQkUGPNSEgqXkMOKu4NP8AgAAhn62AACk0AIAADFAAgACEkgSAALTVgA== Date: Tue, 28 Sep 2021 18:22:08 +0000 Message-ID: <16B132DA-253F-43CA-917B-421256C7967F@health.ucsd.edu> References: <87zgrzclb5.fsf@debian-BULLSEYE-live-builder-AMD64> <08FCAE37-4D75-4E06-9FA2-7E2939F74709@health.ucsd.edu> <8735ppdapw.fsf@debian-BULLSEYE-live-builder-AMD64> <6BFD70A9-41A8-4E0F-8022-E6355BF4250A@health.ucsd.edu> <87h7e5b1bg.fsf@debian-BULLSEYE-live-builder-AMD64> In-Reply-To: <87h7e5b1bg.fsf@debian-BULLSEYE-live-builder-AMD64> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9519effc-e347-4412-ff41-08d982ace1ca x-ms-traffictypediagnostic: BY5PR19MB3972: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Xu3gK5un6oJriijK+Ds5V/bWhSwV1yzo5y6k5xdlQ40Pr82ofZiBouUNd/5LphVXhF6pf+q1m7MtRWUDS7Bk4D8ZxnLluDwDajwT4liH/KtOn49MM/ffE1MF8/oiE0jdH5nPhktp3em5b8y8ayzFN7RkbdM6/3tydgHO0Qj3phRsiRW9VH4QyT8p6GFffkXsKH44h801Cw013T8njgs+zs+Z8y+snJU24eMjGbPhCXpTWhySB4Wsx5VGmCpHx00VjOCc6XtD+KqkbxsNeFS7bOVIL47v7N4KU/PFzeEZzUFNQzOaubT27wzGeFV5bjuo1dqy+zU5NOnMxWLIK/U46AvK6cP6sT4cfSHXL9/o6AHfsebS31W0Uk/POEorN5Y5SKgCKJxOyoHfUGpPrr0b5JMCAZeb0cpyqq0bYNlmzLBUt5YP3dG/1z8alr0iIFn+CrG5p0c6A++Enda5QN8/UsWrEcRRdq4ide/O/sbTWPqPhyfY7uHEq2U/MXw+kHxMNjY5/t7vDat/O/f4lxigk8uPEdGBFxdlVExot7dOY0aFjsZ4capwdvk03TU3oRj+9Q+fPOIo49+uacfkK9rCPzNpuKu4o0bH4UTxHO9F+xKqpRpYaFc3/BW55Hp27t95CDeb2ktEMn9EaP7eJBTqd/BVsKsVVRGKljwCZYNo9e+Lq5uy4Yp8JNMQ/Yg78vrPLutN44pSWLXClaoEsXsoHrxYBhZwWIGI+iwQbU9GuFk= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR19MB2581.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(5660300002)(6486002)(4326008)(66446008)(64756008)(66556008)(66476007)(54906003)(122000001)(75432002)(4744005)(38070700005)(2906002)(86362001)(6916009)(316002)(38100700002)(6506007)(53546011)(6512007)(76116006)(66946007)(508600001)(186003)(8676002)(8936002)(33656002)(71200400001)(2616005)(45980500001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1E8LwKfJz62e5ba3E7qWZvMMes2aJxT7zslcdWM1WCzIgqNQT/8AodIdVY9m?= =?us-ascii?Q?LNH9Sk+bWVnSC9kPcY0dZzxUwmGdJ4XoyZNTXLn4MLV0bFno3hUgXFDhN4us?= =?us-ascii?Q?EQN5yxzw7zZbLCtKPPfCz0UcnQfiDoK4E3xxa0ECfDTIp61UHOII78/I+JHq?= =?us-ascii?Q?Jz60FXHh+WOpX4EiCZL4SBxAQwlubybxr0PtZO7S3WhapTMxUnwIplp3chae?= =?us-ascii?Q?aU1r/l4VEX05RvyFn4nKeCRa/vYojU5bWq8HqDiEJWNoE0eoTphofcIuKjRu?= =?us-ascii?Q?rPDWDbx6rIISthfZruZcMDt0TteYCVCJsrcsYAdmOTKjlCmw3nXoXmhnOQig?= =?us-ascii?Q?TZnHrldJ6ejSioneAdwp+qlQfv1jpc8cXulcdmmUw8csqRn9Qe1ZrvYdqV6e?= =?us-ascii?Q?1MNjx0/dJeyAqnqqN2StYbwGNXFG0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/55DFy8J3d/XFoEKvCGyiSEfv6XoUrPrlRjh9QNZl5fBCIZiIY8D?= =?us-ascii?Q?+9GhxxU5TIn/W++1vKckwndfLdOc?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <50EDD86095D9724FB5A8DA59E93DF300@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: BYAPR19MB2581.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9519effc-e347-4412-ff41-08d982ace1ca X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Sep 2021 18:22:08.3309 (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: GbgX8xRVqAj0snI6FTNcJSqIpmlaUgE6AC7WNy/y+xJAV4D9qreXgRXA7r0cIFZGaaq0kOIEi1s1B+goMHSPzA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR19MB3972 X-Proofpoint-GUID: _qLSH0vBFsZZ8_ajCG1tKk3RQcB8XQV7 X-Proofpoint-ORIG-GUID: _qLSH0vBFsZZ8_ajCG1tKk3RQcB8XQV7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-28_05,2021-09-28_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 impostorscore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=853 phishscore=0 clxscore=1015 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2109280108 Received-SPF: pass client-ip=148.163.137.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0b-00395d01.pphosted.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, 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: Jack Kamm , Org Mode 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632853394; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=mJby9d5yH9C+ViKTq/nj+nbgLOmirk4G/AXzut32KOQ=; b=O+TTx2g6/CUTPjtkItBnLso58S8IX6QUv+ntnzm/tBgtnKbR2r/iduy+yXCwODnp2Iz/Qb sji8reMVGQ1WDxH/4Vxx9ePrFGKX+cD0rVNblfLBkNh/GA5b3HPy69MZx2w1p2s5+wnjt5 r5SZLucGNkcbj198koGAQAsF2B2xRLZkDEaRWd2RgUKMGN9Z9jEbE5Xp+SqeEOkzgEXE+S v8eJd5HnGdz3CJUubRQh3VGSdl2lXf6X4G7R7liVJRGPf4mmBdA6r//s3OioDM3J6ZhL9t s2LzA1LQC7Cavax1CQXhCrR6yMxv5k66BuWpUlfaVHFJObamvaavaTF0EtD1AA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1632853394; a=rsa-sha256; cv=fail; b=NdsTCDQJ8B/rTtqQH6gYK88H/UndLwIxw/aomfsKU7Bz1n/+XAsvGqDYrQ19NjZyzrEN8o nXFxUADDN9MXk7wHBNPSlA+8Rdk1InvMoZ/RiF+Q7H7pbi+AQhrqhLMNlxxtBWP8xwlxnI ge0BIIf/wqTjXJTLfkCkGM4hOUBbJopIPw1R24v1SneyOWkHYAdjJSsFOA34ph78tQRJBk vtGMC1mLKzO1cbpZLQMcOg5nTB8qGd+HymqtrL5Pm+uYwzNUPsmpBCozN4c2Aj7oDOwEkR RoSDr+zDLVPkx4yxSzFbq9ehgb4xQGK0FrYIUrvc2jDv18QYbVs3Fsc7XsTkjA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ucsd.edu header.s=campus header.b=aCPfyGml; dkim=fail ("headers rsa verify failed") header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=z8jSYRS2; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Spam-Score: -1.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ucsd.edu header.s=campus header.b=aCPfyGml; dkim=fail ("headers rsa verify failed") header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=z8jSYRS2; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Queue-Id: 66BE711307 X-Spam-Score: -1.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: Hd9kXg3iW4Z/ Jeremie, > On Sep 28, 2021, at 12:34 AM, Jeremie Juste wrot= e: >=20 > Thanks for the feedback. With the following patch, I made sure that > ess-inject-source is set to default before evaluating the buffer. >=20 > So even if I set > (setq ess-inject-source 'function-and-buffer), I get the following > output. Note that I get the same output in the IESS console buffer when > I execute the command following command. >=20 > #+begin_src R :session *R* :results output :async yes > Sys.sleep(2) > 1:5 >=20 > 10:20 > 1:2 > #+end_src OK. The patch works when applied on top of the previous 2 (but the second o= ne has the same name, so there is that to watch out for). However, I think we are not quite home free. With `:async no', this works a= s expected: #+begin_src R :session *R* :results output :async no Sys.sleep(2) 1:5 10: a 1:2 #+end_src #+RESULTS: :=20 : [1] 1 2 3 4 5 :=20 : Error: object 'a' not found :=20 : [1] 1 2 But changing to `:async yes', the error aborts in a way that omits the outp= ut. HTH, Chuck=