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 8LM2JUEVhGa89AAAe85BDQ:P1 (envelope-from ) for ; Tue, 02 Jul 2024 14:57:05 +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 8LM2JUEVhGa89AAAe85BDQ (envelope-from ) for ; Tue, 02 Jul 2024 16:57:05 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OozvTZID; 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=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719932225; h=from:from:sender:sender: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=EDaDraOG2V47NWf/hTyM406fWJrJX/lkIP3HKE4bzXo=; b=uxtH7tJ6obO5E0W1Gdw9RTyBfAx4aLgYPGX9/BeDTTrt+0E9bwkh5MzgrttnUiN5saoHS2 Bc6HxiBQ0VNHGmhogez3ANm2TuHPr3PvN9epqUQ4LnFY5NnMfU4Qqc2okuu2QLHZKeqp9t Zkje2FsOY+1mY3d5e1JmpNIZXuf/MvgUH9gTHvwTiz5NXwF/RuH3Cpq+EWdzOINr2osO4n zreM9IAGETGKSwVLlcIl7Ycme8n/qdf2vaBLZ4keSAKyDFN/COyzRz2T05Xj597q1nTIP9 Lgbcx0UdpPCT3IZfJUl6ld7geZi7vs9i1tXoVGf4lDuPIdbFGEf0jGiy2B8yRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OozvTZID; 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=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719932225; a=rsa-sha256; cv=none; b=ZZRGXbVeKCLD3Wd1Th5nG/7n2/JT40ki+CVLyJBAJUUm+oJoidK1GJlkaxTrTFQMEIu4nT BvReSsexH5WND+rejWBwlcHR8KbC3PZUhL/2WqFnUab9VAzm20k0nb0LvzJ0aKtNwixLZr set/A36HIetyw/pyyRXkblMmae+jxvVB1tBOklokfxqF2xGf7nV81hP6cPEDqDXl5GTzcG OalXPc/Pim9fUfLCEuAv1HHEZZB2j24+lLWxVMBrIWRteSlliymBT8w9tqdU7yTaoAku+u jgjBTliprSIuDoJoxXuIoTlv9j6A+WeReKujJ606rEalEFo9EP7FtuzieUVJCA== 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 6322E50390 for ; Tue, 2 Jul 2024 16:57:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOeai-00050H-EW; Tue, 02 Jul 2024 10:34:44 -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 1sOeag-0004zk-1r for emacs-orgmode@gnu.org; Tue, 02 Jul 2024 10:34:42 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOeaW-0007d6-2F for emacs-orgmode@gnu.org; Tue, 02 Jul 2024 10:34:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 45FAE240103 for ; Tue, 2 Jul 2024 16:34:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719930861; bh=EDaDraOG2V47NWf/hTyM406fWJrJX/lkIP3HKE4bzXo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=OozvTZIDPAmfZrK3wJi5arm5za0SvJpYwchdBJyzad6A6ccHHMAwgwyFaaDqOnWyu g+p+OehrUsjqqqRRQERRMHwjFe7QyAKc9DmdhLku05DfVXP/VrCgdfkNJ5WHXeSpe9 ZUGH0IMf4f3V5nd09q4A/QI4227s4RNOQ+KsJ40WYFfo73/QUNbU2cmmGpFuHZrl5/ 3H/sNCQSf0NMrY20UjSUdu1Ij2Yo7qAL7wSHu+eNqv4pIFEfmxNFWQd/U/WLiCdt08 TvKypS828qipPtgFMfeTbrwAA9xHWhcGOL/iW6baT+Jv8TqBf4kLa8XdweyYzvvlVT 99cuLUvBRs6ww== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WD55S4lz3z6twK; Tue, 2 Jul 2024 16:34:20 +0200 (CEST) From: Ihor Radchenko To: Sam Cc: "emacs-orgmode@gnu.org (emacs-orgmode@gnu.org)" Subject: Re: Org babel R command session In-Reply-To: <20240702104618.Horde.21-qZi8i7lde_pU0hv8MY6F@drive.crawf.uk> References: <20240702104618.Horde.21-qZi8i7lde_pU0hv8MY6F@drive.crawf.uk> Date: Tue, 02 Jul 2024 14:35:57 +0000 Message-ID: <87plrvj1yq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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: 6322E50390 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.60 X-Spam-Score: -9.60 X-TUID: ewG1TvpPMkQC Sam writes: > 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. This was added because it is relatively common to use different commands for session and non-session python blocks (things like ipython vs. python). =C2=A0 > For R, there is only org-babel-R-command, which is ignored when running > as a session. >=20 > 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. The question is whether it is practically useful to have separate commands for R session and R non-session blocks. For most interpreters, it is not very useful - they use the same command. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at