From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aN/EFqEdhGYCQwAA62LTzQ:P1 (envelope-from ) for ; Tue, 02 Jul 2024 15:32:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id aN/EFqEdhGYCQwAA62LTzQ (envelope-from ) for ; Tue, 02 Jul 2024 17:32:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZMN+uSE4; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719934369; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=xlRJvijttEBQ4NSpQL3HYyIj1xTI44Q+Dcxx/y762Js=; b=RU5zcavngJbuhCVIVbJw3R7LQM3aJFzQrX1Bj7dRGk+ceX+cPV1WgP8VEG1oXt8N3YNaeO UGsB08BD7WW1oJymEEdlEj0qctNd+sNu0KcF1B6g/0yNXbaXR54jzjSL2mkD2xlBs3keny 5LQK973Ic6GXmkwGZP78d6A2IH9aC7mNSnp/KPrGWrs1rCK9P9nkBsGmG9T5g4I5PkxXdQ 9+Ki7U8XcZnNBaP5gQkAV91BHkSMIM0xXk4hTShsKL/XLx+wyQ8qaJxThWRe9M1ddmZR8O y/AoaCEekAnDK+9FfNzwMTPMuzhYivocfSAdpVCZnHkbgK+ZfIdQhntAsmC2Kg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719934369; a=rsa-sha256; cv=none; b=eoB8JxKjBRat7VZeQz/eAPhxXZnxJOMrbuoE3jbZmag2clI3nClqbJ2CThWZG8TAQtLdI5 fq3fDJyE0r0bfr5+SCcZkmedZihK3BAbgHxzv7tk//E1d+71tHTEB6+36ggevuyvDInu8c jLZVdYBI3q8+F7zXuodpk1mXS3xZbTe5Bwq3Hun0y3hCXvYlS+ogF5xDpXFHm/VcmEosFW t9Jdb19A7t2oISCiWMFDYabjzGsO+dMMoO0F6Wi+rxX81DOOnhcICTrHk41GNCgzeSQwwc SqAJ7gWqyvghINlbqslWL+MszgKbyvcaLP34t/aCQj/JWjfeYZxWB2fdn3s2tg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZMN+uSE4; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 34B843045E for ; Tue, 2 Jul 2024 17:32:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOf8e-0001gk-A2; Tue, 02 Jul 2024 11:09:48 -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 1sOf8b-0001gM-Mv for emacs-orgmode@gnu.org; Tue, 02 Jul 2024 11:09:45 -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 1sOf8Y-0005eN-S1 for emacs-orgmode@gnu.org; Tue, 02 Jul 2024 11:09:45 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D5EF8240101 for ; Tue, 2 Jul 2024 17:09:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719932980; bh=MCIzoAD9wCdQfHR2AogQZKpdxYXzLNTCU5uz0B4xiIE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=ZMN+uSE4BS+MRMd+bsoW5DF+L70k9j8Og4AwVtoU5HmVQ/Bw3LxoSTmNkNkn4OtAQ S6rvLuBRXC5yfzpHlXVig4/c3aojqVG9UZcONpM6k5BxeEUfE+kMfDaIsM2mZuHktr 96CPornGGrs9jRMxjpIM82FOReXlDzUbbe+RrCDUzY2W/G+tv+72yobFEGxzu105Oh KgALAqmISv29G7FeR8r9fbii+bHEURuKthC8Q7N4X+PwuqU7jGa80g9YvVJNReLZHF xXypVnk0K/yMXC6b5SGh3Qr0Bauhr0JuXUFxOvrYgxwL/4qg7Q0iFEeIlm8+BLLGh3 KS7l7pMtnbyCw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WD5tB3155z9rxg; Tue, 2 Jul 2024 17:09:38 +0200 (CEST) From: Ihor Radchenko To: Sam Crawford Cc: "emacs-orgmode@gnu.org (emacs-orgmode@gnu.org)" Subject: Re: Org babel R command session In-Reply-To: <7eff7254-5917-4619-9239-6468c4c0aaa8@crawf.uk> References: <20240702104618.Horde.21-qZi8i7lde_pU0hv8MY6F@drive.crawf.uk> <87plrvj1yq.fsf@localhost> <7eff7254-5917-4619-9239-6468c4c0aaa8@crawf.uk> Date: Tue, 02 Jul 2024 15:11:15 +0000 Message-ID: <874j976d7w.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 34B843045E X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.60 X-Spam-Score: -9.60 X-TUID: svJAuh/TFNHC Sam Crawford writes: >> 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. >> > > I agree that it's unlikely that users will want separate commands > (though tools like radian do exist). > > Regardless, there is still the issue that, if :session is not none, then > babel will ignore org-babel-R-command, as it just makes a call to > run-ess-R. So even if you don't want to add more variables (which > ultimately I'd agree with), it might still be worth wrapping that call > in something like > > (let ((inferior-ess-R-program (or org-babel-R-command > inferior-ess-R-program))) > ...) Or we can just document that ESS defaults are used for sessions and ask users to customize inferior-ess-R-program if they need something non-standard for sessions. The problem with `inferior-ess-R-program' is that it must be executable name, and cannot be command with arguments, as in our default value of org-babel-R-command: "R --slave --no-save". In the absense of people who are actually making use of the proposed feature, I see no reasons to complicate the code. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at