From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 WAjiCIWMhmf9MwAAqHPOHw:P1 (envelope-from ) for ; Tue, 14 Jan 2025 16:10:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WAjiCIWMhmf9MwAAqHPOHw (envelope-from ) for ; Tue, 14 Jan 2025 17:10:45 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=BsespepD; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736871045; 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=TvfcPLL0pyV4HuzVSeRHvVtb41sdPxzPtViVqGg2cxo=; b=eyTAFx07NA412wjoJkMZdBh1fD2+lIDrk3+ZbwW6WCEvO6c9S2ZdFUDBKJF5jxsPU9HRHA uc3yRpv/HkOe4lfjk/gDVO1lcqTaoK1jWUrdMhUzMajtuQizPAhphH4m328DmS2++46age wbdqwo5+61HP7x7rj9/7nl/prKsMVWLsKKV3iMRANb8n9MiPLGKpgdSzm6+oPB6U8asWn2 5Bcwpco3UnjF9YMsoIRF1NfwyqbpYa32/rQN6DWe7ElqPdYZuaHfhTUqBSllxkU+EMy/Ed pWab3UthFMLWZcb3PEjWhO6v98Tj1tuTb3yfW5SL7xjePZ0CDobd5hQVi3khkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=BsespepD; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736871045; a=rsa-sha256; cv=none; b=UC4z+tu4sXrCJKYV7TzR8v3UDvC+e3LQy7XuJrCL+l1dxnk5PT6sD3BLp5pVWb1lKjXvti 0IlwJKxIJKbX1WB7fLZjtiZZK2/PsK+9SowjaS2EPgV0wpRzEstXJIk7HS/oCGg/fPJwPq Ry0kE1mA4QMv7MUSlVvp2sc7S56gDttsFUNeF/rUX1a+I3MLdfrTYgTOo58Xxe6UjxOi54 Cg8uW1TvNS9YC8+GbV2P3nRzXf3MV8NSF/osIZMWODS42iH46xFfv5QmyvqNXhVvBmf6LJ KleDn/8QICTYOnh0NpvoAjpTYlQrobgqcoJ9mvHRzJDdzVlyUj+dML6AjqBj2g== 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 B52737E8E3 for ; Tue, 14 Jan 2025 17:10:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tXjU8-0008Jb-Mh; Tue, 14 Jan 2025 11:09:44 -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 1tXjU6-0008IP-CW for emacs-orgmode@gnu.org; Tue, 14 Jan 2025 11:09:42 -0500 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tXjU4-00039V-BA for emacs-orgmode@gnu.org; Tue, 14 Jan 2025 11:09:42 -0500 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-5401ab97206so5626549e87.3 for ; Tue, 14 Jan 2025 08:09:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736870978; x=1737475778; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TvfcPLL0pyV4HuzVSeRHvVtb41sdPxzPtViVqGg2cxo=; b=BsespepDGfR1jPlRDuE46LHJ5rpulAKn286VCn8GZeOVdNJm/WsjeIJcCLHITGwXCN fYNbuDSr/D6X7sg27QH8iheEXMQlMI0dFIMA/NAo89uQAkxN9OwmZRZJBBZt4XUtx+/R 4c8xduN86dWzSHRZrOo+uPfP3A8Dlrjm9SWdPEYCiPxreRhUwgEcFOOIoOefrXi658eg yuOWFMBC95xx/X2kWbU5oDZAnIA2aAAf163k4bmasPHuf1nDKsu6R3eKmMMd6Nx2nc6d K7TB2TeSaiDbx6a2QrmY5CwvYEiuHZ4AxdNVBnTMwM6Y28Qs1L6Hw4UX4stJexw6pw5b 05ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736870978; x=1737475778; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TvfcPLL0pyV4HuzVSeRHvVtb41sdPxzPtViVqGg2cxo=; b=HZNib2sRbi+fHYIVsDb54D4H3+caXsRyL9IQi9yZ/MzT4LkRhV72Cp5nM+f5Kjv4ZG WJjjh0AQUJVEiGirdgG+ZZtUDdfOXCV8jxhDrI6ozK/5+m6YKPd9AekEQ8beUJVacDgu HDVHMgZJ1wSXjiC5ZrmeQrfKiTeTaQwLiYuPwq62kRrxaN/Y8K4ilv4HuMXdcETt5yXP /QXy1SZ7Tkq4W+TUaqJRLq9iIuzI9VmnsnHyDSOPjt1APLvCNYMyBBrWTJ6XZset8jvQ dnI0On9+EpYc8KZYg29WEU1lXmc4KuxbHEvdosQc6WwcEDsRFFwPcQEMOazt4mY16j6S iZdA== X-Forwarded-Encrypted: i=1; AJvYcCXASkGQAMd1kwVfgH0zWlkPXIDMwjFP4mvU1ttPHG4iApE2g693G1OjjW1E/y6kZtq6kb3NiKV+cH7cmHAv@gnu.org X-Gm-Message-State: AOJu0Yzr/79kyjP3VKqN1BaeXFvQLP1YP1JumADzsZTqxMXKoquM7/kg hBMOY+CP4MO0JyMAPL+p8+IuWSf7Gb8RHtCvc2w/yWbfNQn/LFErBGdCZPH8MkkOts8fRtAqYuA 0IFJcNmD2eTErAQw5B7YdMQFezQ== X-Gm-Gg: ASbGncvFn4yjaqdoJlkv0YTQStKg3bRYvMPLuAC0l8GrCCSl/VYsYzeToRFmL9APKsA 3QfT5KHXJ2RIJOHp/2vMztHHIlDY+uHZ8lckd4DvMtNZjGRlEc3QErBrXKBf2jKkI8UC1P+M= X-Google-Smtp-Source: AGHT+IHolg/L7sb8JVTtOOAqsoTbr+c9/ObcCoeCrhztVSnkUZiMf1RJ6Oc/EUjTHhmpEH0k/Khxp1ZPDak28C23MzQ= X-Received: by 2002:a05:6512:1281:b0:540:5b5c:c18d with SMTP id 2adb3069b0e04-542844f6d6emr7215628e87.7.1736870976218; Tue, 14 Jan 2025 08:09:36 -0800 (PST) MIME-Version: 1.0 References: <16Z2_l6WnvrrYSQE7LC5XJQB3dO0DNAREBe7F4yE_DuNVOpHzqwELJ08ditlBSgFv_nnI3FSwi0JYCLEpd9CMqViJHxHiR3XbGeqDf4DM7Y=@crawf.uk> <87jzibkfc4.fsf@localhost> <871q4izpr4.fsf@localhost> <87y15ajb36.fsf@localhost> <67624935025af48d59e5a0437da4b793@purelymail.com> In-Reply-To: <67624935025af48d59e5a0437da4b793@purelymail.com> From: stardiviner Date: Wed, 15 Jan 2025 00:09:07 +0800 X-Gm-Features: AbW1kvZVagq1YA1ZjmR2-h2SZ4bX9ZQ7wrl5mDnj6BTsEp9qldFL1eH2Ecqc5fg Message-ID: Subject: Re: The ob-R :results graphics file :dir "images" :file "plot.png" specified directory not working To: sam@crawf.uk Cc: Ihor Radchenko , Org-mode Content-Type: multipart/alternative; boundary="0000000000008eec3a062bacc904" Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=numbchild@gmail.com; helo=mail-lf1-x12d.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, HTML_MESSAGE=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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: B52737E8E3 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -0.44 X-Spam-Score: -0.44 X-TUID: lqeFb4++IAlU --0000000000008eec3a062bacc904 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > Some relevant settings that may be altered by your config are `ess-startup-directory` and `ess-startup-directory-function`. It might be, for example, that one of these is forcibly changing the R process' working directory to a project root ("~/Org", in this instance) Yes, I found the reason `project-rootfile` changed the directory when babel source block execution. > By the way, setting `:dir` changes the *working* directory, which you might not want to be "images". There is a separate header argument, `:output-dir` that can be used for this purpose. Thanks for your tips. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Tue, Jan 14, 2025 at 6:49=E2=80=AFPM wrote: > On 2025-01-14 05:29, stardiviner wrote: > > I tested using org-mode's `make repro` clean Emacs & org-mode environment > instance. It works fine. I double checked my Emacs init file about R > settings. Have not found suspicious config. > > > So to confirm, you *cannot* reproduce the error with a clean config? > > Here is my reproduce test. > > > I tried running this, and it seems to work as expected. > > The generated plot image "images/hist_rnorm.png" is NOT in > "~/Org/Programming/R/images/hist_rnorm.png". It's in > "~/Org/hist_rnorm.png". > > > Some relevant settings that may be altered by your config are > `ess-startup-directory` and `ess-startup-directory-function`. It might be= , > for example, that one of these is forcibly changing the R process' workin= g > directory to a project root ("~/Org", in this instance) > > By the way, setting `:dir` changes the *working* directory, which you > might not want to be "images". There is a separate header argument, > `:output-dir` that can be used for this purpose. > > Sam > --0000000000008eec3a062bacc904 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>=C2=A0Some relevant settings that may be altered by yo= ur config are `ess-startup-directory` and `ess-startup-directory-function`. It might = be, for example, that one of these is forcibly changing the R process' = working directory to a project root ("~/Org", in this instance)

Yes, I found the reason `project-rootfile` changed the di= rectory when babel source block execution.

>=C2=A0By the way, s= etting `:dir` changes the *working* directory, which you might not want to = be "images". There is a separate header argument, `:output-dir` t= hat can be used for this purpose.

Thanks for your tips.<= /span>


[stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 <Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 GPG key ID: 47C32433
IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA= 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/=


On Tue, Jan= 14, 2025 at 6:49=E2=80=AFPM <sam@crawf.= uk> wrote:
On 2025-01-14 0= 5:29, stardiviner wrote:

I tested using org-mode's `make repro` clean= Emacs & org-mode environment instance. It works fine. I double checked= my Emacs init file about R settings. Have not found suspicious config.
So to confirm, you *cannot* reproduce the error with a clean config?
Here is my reproduce test.

I tried running this, and it seems to work as expected.

The generated plot image "images/hist_rnorm= .png" is NOT in
"~/Org/Programming/R/images/hist_rnorm.png&quo= t;. It's in "~/Org/hist_rnorm.png".

Some relevant settings that may be altered by your config are `ess-star= tup-directory` and `ess-startup-directory-function`. It might be, for examp= le, that one of these is forcibly changing the R process' working direc= tory to a project root ("~/Org", in this instance)

By the = way, setting `:dir` changes the *working* directory, which you might not wa= nt to be "images". There is a separate header argument, `:output-= dir` that can be used for this purpose.

Sam
--0000000000008eec3a062bacc904--