From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0JgTH4xBhmdbTwEAqHPOHw:P1 (envelope-from ) for ; Tue, 14 Jan 2025 10:50:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 0JgTH4xBhmdbTwEAqHPOHw (envelope-from ) for ; Tue, 14 Jan 2025 11:50:52 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=crawf.uk header.s=purelymail2 header.b=cnVQ7IsV; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail2 header.b=gH3ag+UI; 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=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736851852; h=from:from:sender:sender:reply-to: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=qFh1WXEJUsvGitq1b44Z/eCEpPRB0JYy4GgdQ4tyVOw=; b=aJN89rYViTbXzqE+bZ4E+H3XXfppUYHheJxL7mafr+NVwyzZ0wZxklmcPeCfh8jOw1POi0 xUMAZlE4ugdIssb2w2RZ2L5BYPovZZJ5VVaxyz45PyMcSotaQoMq1bihLAySAJumCO3QMO 7GrFJSmYW1tFXO/jC1zbok5P9vZbtuh5ddey7ij/JeagLg0Ap+xSLFHn2SQa9oOAEERSUk 5eW29KQrfZXt99YBY4CtsFtN1j+Lju/5c+7aEYxCPfoe27q+P3EronGl8ZQ0Aw65qQBtd1 rF7t9lxz4ZhUpWhCZz3/BLV6Z5DntB/a8Yogy6IwHwj/hLDAto6L6EwE34WxrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=crawf.uk header.s=purelymail2 header.b=cnVQ7IsV; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail2 header.b=gH3ag+UI; 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=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736851852; a=rsa-sha256; cv=none; b=c3H4LyUG4R1sVG+DFCMvJlnDcWK1qUvNZc3qkYaCGg8bNukX16W3rtC+P0NtW3l062giS3 0qYiexh/r5Y6dhdBKMkAZNfwkxLcO5jg1BhhY6BOhNjUlURrPrTe1FdAZCq/QLZI5joI1p 63RE4sSi0CKzFV5EK9WPUtROSHKImPKqh+UABTp9TGqe1jW5t+DO0+G5sB4C7LFX+DR49P UkFYlWa4eAeSrgWzCKUJiitxew6GUIUqS7vFT2/2tQp5/T3rTVXM63CBnTXZbr2RvQy2S5 8RcLA9fNS8HY3Tq7mB3SncupjME7t+q2q3HrdibO/R3KnDUzs42QqU6ZDirLZg== 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 2D114910B1 for ; Tue, 14 Jan 2025 11:50:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tXeUF-00013l-Qi; Tue, 14 Jan 2025 05:49:32 -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 1tXeUE-00013U-8y for emacs-orgmode@gnu.org; Tue, 14 Jan 2025 05:49:30 -0500 Received: from sendmail.purelymail.com ([34.202.193.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tXeUC-0006TN-95 for emacs-orgmode@gnu.org; Tue, 14 Jan 2025 05:49:30 -0500 DKIM-Signature: a=rsa-sha256; b=cnVQ7IsVrAbH8K13TD5zC6KTSxuJqEfu//XLle5llFveoi6BZ8WKBL9qvtMLfxdyMzkO0qCa/+yxl3jCLw1yC4rGyh3ICwbH5Kvo71h2HGK23tDAIpQzVM93JgFV1lJmL/wSNNjwmrtcMuQreKqKdaTJeoxe/v7jIkkuQiIpXCce/OWpM05ApqzYsIDWkdONRxKGsG0Sln3PdGYjKgC3v0WEUROzm2e7XvPCYaq2dRGBRN/twVT+ZFcraDZzNYtCPuckf8CowwArtsjCoyP2U5PF3YGIsTqYTsCggV3pxo/iU8Unb+yrzNqFVhrdtLLe4+9V5EMvMpywuj6fpLhRDA==; s=purelymail2; d=crawf.uk; v=1; bh=pthWZZK7EQJgwODLgz5VCp6Nch2P7HeyPyst6ZWnZ3k=; h=Received:Date:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=gH3ag+UIVtyJGqTXQ1+B4u5ZizRMCNmYUJTDF79tHoUcyPBvshe3PE1gkWIuTmHCIJh1nUaK+qKWT2m25a/IEWA+gJpf64bUVfyRexE6hsURdbqhIEUzvjI85vi2hyWvJ7I28/WM4YpyQ0297jwSmba4nmpbGQOFLvcvIzXVu7VN3KMtviD//Ot29DqiKAd5ytCcpfLtMuS3ovcPRexeacjPa5ji6y6oZZy+6gqJrGwa/4BkUyXePhCS4InOWuFOnpJMDTBeKHPPQWmZ557eCrKAFHLroT7cSQNw8335E8vxJn5t92YfIJecEaCYqLHJ6kaH4QmvogVQYZuBtRxc2Q==; s=purelymail2; d=purelymail.com; v=1; bh=pthWZZK7EQJgwODLgz5VCp6Nch2P7HeyPyst6ZWnZ3k=; h=Feedback-ID:Received:Date:From:To:Subject; Feedback-ID: 50271:8376:null:purelymail X-Pm-Original-To: emacs-orgmode@gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPA id -1459743217; Tue, 14 Jan 2025 10:49:21 +0000 (UTC) MIME-Version: 1.0 Date: Tue, 14 Jan 2025 10:49:21 +0000 To: stardiviner Cc: Ihor Radchenko , Org-mode Subject: Re: The ob-R :results graphics file :dir "images" :file "plot.png" specified directory not working In-Reply-To: References: <16Z2_l6WnvrrYSQE7LC5XJQB3dO0DNAREBe7F4yE_DuNVOpHzqwELJ08ditlBSgFv_nnI3FSwi0JYCLEpd9CMqViJHxHiR3XbGeqDf4DM7Y=@crawf.uk> <87jzibkfc4.fsf@localhost> <871q4izpr4.fsf@localhost> <87y15ajb36.fsf@localhost> User-Agent: Purely Mail via Roundcube/1.6.8 Message-ID: <67624935025af48d59e5a0437da4b793@purelymail.com> X-Sender: sam@crawf.uk Content-Type: multipart/alternative; boundary="=_7c51fbba3a53ca171d3d51b9e082e3aa" Received-SPF: pass client-ip=34.202.193.197; envelope-from=sam@crawf.uk; helo=sendmail.purelymail.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, HTML_MESSAGE=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-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: , Reply-to: sam@crawf.uk From: sam--- via "General discussions about Org-mode." 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-Spam-Score: -6.25 X-Spam-Score: -6.25 X-Migadu-Queue-Id: 2D114910B1 X-Migadu-Scanner: mx10.migadu.com X-TUID: FK826YFdyDfN --=_7c51fbba3a53ca171d3d51b9e082e3aa Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed 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' working 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 --=_7c51fbba3a53ca171d3d51b9e082e3aa Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8
= On 2025-01-14 05:29, stardiviner wrote:

I tested using org-mode's `make repro` clean Emacs &am= p; 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?<= br />
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 NO= T 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-st= artup-directory` and `ess-startup-directory-function`. It might be, for exa= mple, that one of these is forcibly changing the R process' working directo= ry to a project root ("~/Org", in this instance)

By the way, set= ting `:dir` changes the *working* directory, which you might not want to be= "images". There is a separate header argument, `:output-dir` that can be u= sed for this purpose.

Sam
--=_7c51fbba3a53ca171d3d51b9e082e3aa--