From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 sFXaAWH5e2aiFwAAe85BDQ:P1 (envelope-from ) for ; Wed, 26 Jun 2024 11:20:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id sFXaAWH5e2aiFwAAe85BDQ (envelope-from ) for ; Wed, 26 Jun 2024 13:20:01 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=crawf.uk header.s=protonmail2 header.b="PhL/bHLK"; 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=crawf.uk ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719400800; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=OHiHvywOV5bZJs4+qHlHX/IXBMryvRPBJwW+8OCpW40=; b=iHYbDMsm3y4gN/6zUGl08VppyRERLx+87y4eIn1SLqnwsTyMgj8lwkRPW7s6HHBYugWPKR DKGAFTxKNdHLy0SW/8jMBiTv6eqvOyBYtr+kFOgfny5r/VUjX8jtq/rs0aC0EbtdLS/zp2 0FUUxSvSeqbrynpZQe7o2pgilXgf8P0wtMwIjA1Q3iOKKHGo/kUSNqpFRGmORePtH2sB/E vHkg8WEq5CCNFkMVrGLsb2FXAhhQIAOgKuslZWrGfxk+LvXdepw4sbO3wKYRYiyW0c5pBv QEBDs9XcTu5/AUoskTgbS8NJhSBstqKzWJolBrCKUfifiQZDiIo4+geonYgxYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=crawf.uk header.s=protonmail2 header.b="PhL/bHLK"; 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=crawf.uk ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719400800; a=rsa-sha256; cv=none; b=lHld5N5U7Msxk5/kzr9aVQUsJ6yjhAf28hw0pxY2jO8OI+pc3ryJgdaaQqeoElm41IucUr YSd3EqBWdWTDcM13MiEOPKUOeXnGNv2qNNBfbkYwtwP8hLFJp/dQw+eMAtr2eUll1zdZby cO9EV9brH2XedBo7q3sNQtxMBBsNEISDRikIRwQF3Jnbe9jf+kdcfmcxS958NPW6DyF+Rd 9nJBxxVMYwWMS6HTubSIGMdOIh4NH9g5KcJFvNKfkLKBfL+/pZZpCZDP71seo/9I46a69H aAofW9f68CVJaUIzNFe4FliFYvJU5gUxLd1EUDsfYTiKqg6jGrFHEeDK2Qq52A== 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 B6A0069DCD for ; Wed, 26 Jun 2024 13:20:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMQfI-0002GZ-TY; Wed, 26 Jun 2024 07:18:16 -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 1sM3rW-00017q-JU for emacs-orgmode@gnu.org; Tue, 25 Jun 2024 06:57:22 -0400 Received: from mail-40136.proton.ch ([185.70.40.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sM3rT-0007Xe-Po for emacs-orgmode@gnu.org; Tue, 25 Jun 2024 06:57:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crawf.uk; s=protonmail2; t=1719313036; x=1719572236; bh=OHiHvywOV5bZJs4+qHlHX/IXBMryvRPBJwW+8OCpW40=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=PhL/bHLKVyTd9J4uHywDN0ASgIgfCG2mABRgZAA2iCZ1Zwf31wpAoI1GLf4D09qzZ 6QmTqHuV9uRhuRWi/QM5H7z/F1IOK9StWe3fbCePKQiGnC44kDorWpcL2+kK6OaPW6 ZGVMr4kVSK0NOjQlASeSXY4Up7aUn31BTP8INso8X1/PtcIvI1keLrniR+dRwxhLV6 1lekNavMifGKlXiGIHReHdL7/n42tDd8geIBTHnXlLgg/9VDSwqNkYQRtZQV+/Qs3W GxsWtRq0yB3ovSNiacA1pcDUX9oOk1jK9Sqbg2PSEFroqWT/wn+0HVea6NtZYHRDs8 iazWVvcFzjgQw== Date: Tue, 25 Jun 2024 10:57:11 +0000 To: "emacs-orgmode@gnu.org" From: Sam Crawford Subject: [BUG] Relative filenames for graphics output in ob-R.el [9.8-pre (release_9.7.4-80-g7fa169)] Message-ID: <16Z2_l6WnvrrYSQE7LC5XJQB3dO0DNAREBe7F4yE_DuNVOpHzqwELJ08ditlBSgFv_nnI3FSwi0JYCLEpd9CMqViJHxHiR3XbGeqDf4DM7Y=@crawf.uk> Feedback-ID: 80966066:user:proton X-Pm-Message-ID: bb9185341a4051948cc73b79c5b065d2826568f7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.136; envelope-from=sam@crawf.uk; helo=mail-40136.proton.ch 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 26 Jun 2024 07:18:14 -0400 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-Spam-Score: -6.57 X-Migadu-Queue-Id: B6A0069DCD X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.57 X-TUID: h3FVdKNPcWot When running an R session for org babel, if the working directory of that session is different to the directory of the org file, then source blocks with :results (output) graphics file will not work correctly. I believe this is due to the fact that org-babel-R-construct-graphics-device-call uses a relative filename. I'm not sure what the best way to fix this is. My workaround was to replace out-file with (file-name-concat default-directory out-file) in the call to format at the end of=C2=A0 org-babel-R-construct-graphics-device-call, but I'm not convinced this is the best way to do things. Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.= 42, cairo version 1.18.0) of 2024-06-21 Package: Org mode version 9.8-pre (release_9.7.4-80-g7fa169 @ /var/home/sam= /.emacs.d/straight/build/org/)