From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OAi9DGWKg2OP8gAAbAwnHQ (envelope-from ) for ; Sun, 27 Nov 2022 17:03:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QDbJC2WKg2M3qgAAG6o9tA (envelope-from ) for ; Sun, 27 Nov 2022 17:03:49 +0100 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 C9F2033220 for ; Sun, 27 Nov 2022 17:03:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozK7G-0005vw-6H; Sun, 27 Nov 2022 11:02:50 -0500 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 1ozK7E-0005vR-GP for emacs-orgmode@gnu.org; Sun, 27 Nov 2022 11:02:48 -0500 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ozK75-0005Nk-Va for emacs-orgmode@gnu.org; Sun, 27 Nov 2022 11:02:45 -0500 Received: by mail-ej1-x62e.google.com with SMTP id ho10so20491348ejc.1 for ; Sun, 27 Nov 2022 08:02:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ljUET3MOaDcT2iKj65PcOVV3YIF24A9+v8ZsAypTP74=; b=YmSYkwvIOjoNJUWMCvRXW//eB3G+VlDXGfgwR8/8Rchr3fEYLrCXl1gKJssqZ3Puec kPGFSOL4Xdw8i5XNedb4j75NDY+oWJPMubE5/ZN1LX53MLRiaNhkU3xjKkYz6IwfU5Yd xGd+9j+5cJ1Rnc8GHj7EjwIU034seEq980D5SnczsUIu4ZMOQxhWI+dJejdO8mIYKKIR 1HE7WYlfox8nQTa9g0s1CxhnpXQLLdm80iIv8QEiaFhrB9qeNUNoEiybsAWnma3dUHc2 Oe8yee/On4GteF096Tc5tPxldqyQLA494DAQLHAipA2s++uvV9hxwP1RnEK5u/PNQ/sw 9GuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ljUET3MOaDcT2iKj65PcOVV3YIF24A9+v8ZsAypTP74=; b=ht3h4D+oec8StXvCDW0CWr5shElkcZdhEGI157dCAZoe9zr2QzUqLSIdvOHtf+5dRy 83ZFw0CWhwPRKAh5eAv1F0uF3xLAeA98mSAwcVkGjE0W/hSbzEeV7afMEsBLeYGRWdtn dEDB9SdP7fzhOVGpvZdTMLRi3Qr0uEYsNJSpwygGYMtpxKlYPsTnprryXKQoZOnh5OQK 6/OvSAN0mBbpH/M5fSq9tQnu7ge1T6rWuRpGzSzQrbLzNNcXYd6hO83NYl4ECPcmLH87 JC4W4Yo/BjsoI/1YraPKKQEzdSyGCmpR304MjR8uLBqEQsh2o6efJelvALEoeJxMU4n+ Qt5A== X-Gm-Message-State: ANoB5pnoAvNcJk3QKsUg9Nyfz7gwpQB41nXYiNnHoHqCI38ScPrbg6Yn ZuCYoV0GkBbbnvkpfj2KOQ18JesPfRURNg== X-Google-Smtp-Source: AA0mqf7KArmjTC6gJ+T/ejL8Bqq82AeHtfT5V+9jlluU1qp6dQeJ51Mk2oLH7btyIGmXowT2OoWtNw== X-Received: by 2002:a17:906:4486:b0:7bd:daa1:7001 with SMTP id y6-20020a170906448600b007bddaa17001mr5832634ejo.133.1669564958307; Sun, 27 Nov 2022 08:02:38 -0800 (PST) Received: from flexignu ([2a02:908:1d5:3c20:cc2b:39eb:1f5e:47a5]) by smtp.gmail.com with ESMTPSA id c9-20020aa7d609000000b0046150ee13besm4143385edr.65.2022.11.27.08.02.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Nov 2022 08:02:37 -0800 (PST) From: Jeremie Juste To: Ihor Radchenko Cc: William Denton , emacs-orgmode@gnu.org Subject: Re: Seeing all the steps when I run an R code block References: <87bkp9dl76.fsf@localhost> <87bkoxj50h.fsf@localhost> <87mt8cy6ct.fsf@gmail.com> <87cz98ipgx.fsf@localhost> Date: Sun, 27 Nov 2022 17:02:36 +0100 In-Reply-To: <87cz98ipgx.fsf@localhost> (Ihor Radchenko's message of "Sun, 27 Nov 2022 11:52:46 +0000") Message-ID: <871qpol71f.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=jeremiejuste@gmail.com; helo=mail-ej1-x62e.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669565028; 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=ljUET3MOaDcT2iKj65PcOVV3YIF24A9+v8ZsAypTP74=; b=CfVlkbCyRWN6FP4AxEo7s0w++AfBmJAMWYJ1lGOT/TeDDtfRllmBShMP9yQv5v4U+ywwLG CKha/puQg1g66D7O6NXLfKq3NTa16C6HzeUGVvg+GXosukAWRKrM3xMysF3U8nFwxVipC9 +J0ZdUrKUHLdu8Q/+nDUp6JswGPfBeY29IrX6NogHKWkw52las1GLlUKZgR7cPUccYv77v 4AAK/uGEDfGTJwVuOvlc6FIvRy79tgDdjH/29fEEaH/Nrh5TaFrF7zedfVq2nP/s1oNYE9 OxJxt9y8IfJT+IRsx81F3Ne2Aqz1U5rjBnN9Q2Asj1e+LyXme7QNYW7SwvnHbQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669565028; a=rsa-sha256; cv=none; b=Ty4J3/uSKw1R1x6mSpYoS6Fx+D6b5REM6vd0Sa6UwO7VnqrYaCIuUgPqMa9vAfBaiPNKm0 at5ROR1iOpInPMHcUYChB2Z7GoLLlSm61tcPBPD637+VOqnfa8WW83PwJrL3tXXi8Xu+bY Ke5/Fa/NZdMJCyMhGYsUfCtrjYmptzuYZaWIgYwlPoXG+ZyVgNdhZuZ0LrfH40yypeqygl AIF6GMMotQSItBIN0C/++zOXw8n2ojQcM9x+wexeExROZZapifs5QCspkYAcTlH7r4SvK1 5IrFwaHF7V74dJ/I0X8UFPvntKs7643LYUh31/9I8/o5/ZoYWzoD7LfCdbb7qA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YmSYkwvI; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.96 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YmSYkwvI; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: C9F2033220 X-Spam-Score: -3.96 X-Migadu-Scanner: scn1.migadu.com X-TUID: npguH6BdGz4e Hello Ihor, On Sunday, 27 Nov 2022 at 11:52, Ihor Radchenko wrote:> > So, if R has some way to override the working directory, we should > enforce what we promise in the above section of our manual anyway. > > Otherwise, the will lose on Org document reproducibility. This is a fair point, many thanks the insights. ESS indeed overrides the working directory when ess-startup-directory is set to nil. It only happens when :sessions are used though. Here I created created a git repository in /tmp/test, and when a process is initiated with session (the last code chunk) the process is started in at the root of the git repository. #+BEGIN_SRC elisp (setq ess-startup-directory nil) #+END_SRC #+BEGIN_SRC elisp default-directory #+END_SRC #+RESULTS: : /tmp/test/books/reading/ #+BEGIN_SRC R getwd() #+END_SRC #+RESULTS: : /tmp/test/books/reading #+begin_src R :session R:testing :results value getwd() #+end_src #+RESULTS: : /tmp/test Thanks again, I'll improve this. Best regards, Jeremie