From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4IQZMdPag2btzgAAe85BDQ:P1 (envelope-from ) for ; Tue, 02 Jul 2024 10:47:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4IQZMdPag2btzgAAe85BDQ (envelope-from ) for ; Tue, 02 Jul 2024 12:47:47 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=crawf.uk header.s=fe-7a9b4d699b header.b=UEQJe0Jw; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=crawf.uk ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719917267; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DVyFUoyzWBhOSeQWhegdGfj06ilXs3O1QYua/OMQRA4=; b=onDAqaOtmgUGR+oLYXIXasXMJtDAkgmZOnnCtcXTjf05j/8xlkxMyiszB8sy8LxTOGM8eK i3Pkwk1Z7ojkHbMdkEnvdD6mGSWptY7qunFkiYW5II13kKETZ9yJT6j/jW5LarIrpeVtkQ EbWR3tagP5LHkl9YRRHHGyYb+o+nL3t7yKl+37hPp1fOTlqPIh45t6l/VrvHm7TLPxnFSZ cmatQ7X4sfeI7cwIwsbdGOc8vhEJNSucEsbsM4KYMZ+5EXZVCo2bVk3dqmw1WMuMNlbfJ6 a+ZFHpCC0LSppTCgFFNQlYQb8Iuh2JwTX6+x7xV54xYdDTJx2UYJZ12KUuMOdg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=crawf.uk header.s=fe-7a9b4d699b header.b=UEQJe0Jw; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=crawf.uk ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719917267; a=rsa-sha256; cv=none; b=JOKoTakGtMg5fuLXR4ZlkMMN+myACeY/ZdtR4SdmNNbsAnExgxuj84zFktpSqfbWu9vibf 7FS2GXyv5e/P2Lad/0U08m/wcX1RruTLW+8SRLHXxLNG1uW+yl/doGm4hmihZy6UNS3TP2 CFA0yOvjInckTdrXPAVdTBypf1n3oyxyublLtNpg69iqVbHp3+HVyZVvhzhxSPudAgYCOc QY4XNVEkZP2pqSSd7uExnsKi4Yb13HFV3PzW+drRD0yN4KYqAJmAxXJYHz8aAs1xBPwwq1 TenJpcQ4v24rcT1pVVp2fGwtxgGPcW1kapCDtvmOLBoikVcAXTJQr7uHfRSHjw== 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 9257855CCB for ; Tue, 2 Jul 2024 12:47:47 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOb1z-0007p3-Iy; Tue, 02 Jul 2024 06:46:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOb1t-0007og-Fu for emacs-orgmode@gnu.org; Tue, 02 Jul 2024 06:46:33 -0400 Received: from smtp.forwardemail.net ([149.28.215.223]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOb1r-0006z5-OC for emacs-orgmode@gnu.org; Tue, 02 Jul 2024 06:46:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crawf.uk; h=Content-Transfer-Encoding: MIME-Version: Content-Type: Date: Message-ID: Subject: To: From; q=dns/txt; s=fe-7a9b4d699b; t=1719917187; bh=DVyFUoyzWBhOSeQWhegdGfj06ilXs3O1QYua/OMQRA4=; b=UEQJe0JwEo7jDgtG0VOKxC421oUerlj5N8QH82oHArmQPV1gn9JvUg1xe71OTsOcLOMoNOnuP AQsLPneP6uXdJCH+lX4ngmbSQIt4AKn1snKkZ7rfo60ATQjllfr7+1P9H9FdjCEtzz+VvqBLpj2 tUcxLrjO0nJuM4XkgP7oHyE= From: Sam To: "emacs-orgmode@gnu.org (emacs-orgmode@gnu.org)" Subject: Org babel R command session Message-ID: <20240702104618.Horde.21-qZi8i7lde_pU0hv8MY6F@drive.crawf.uk> User-Agent: Horde Application Framework 5 Date: Tue, 02 Jul 2024 10:46:18 +0000 Content-Type: text/plain; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; sam@crawf.uk, smtp.forwardemail.net, 149.28.215.223 X-ForwardEmail-ID: 6683da7e9c7d4a21fcc961ca Received-SPF: pass client-ip=149.28.215.223; envelope-from=SRS0=c20a=OC=crawf.uk=sam@fe-bounces.crawf.uk; helo=smtp.forwardemail.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 9257855CCB X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.58 X-Spam-Score: -7.58 X-TUID: p5aXcPXDxlU+ I just noticed an inconsistency between the way ob-R and ob-python select executables. For python, there are 3 variables: org-babel-python-command, org-babel-python-command-session and org-babel-python-command-nonsession, with the former overriding the latter two.   For R, there is only org-babel-R-command, which is ignored when running as a session.   Is it worth trying to make the R functionality as similar as possible to the python? If so then I'm happy to submit a patch doing just that. However, I'm not sure what is the best way to handle giving command-line arguments to the R interpreter when initialising a session, because you need to set inferior-ess-program to the executable specifically, and put any arguments in inferior-R-args.   Cheers, Sam