From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iIUJJdA8fWM8bgAAbAwnHQ (envelope-from ) for ; Tue, 22 Nov 2022 22:19:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qKdAJNA8fWN2ZgEAG6o9tA (envelope-from ) for ; Tue, 22 Nov 2022 22:19:12 +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 E9114B7E6 for ; Tue, 22 Nov 2022 22:19:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxaf5-000237-PO; Tue, 22 Nov 2022 16:18:37 -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 1oxaf0-00022c-8Q for emacs-orgmode@gnu.org; Tue, 22 Nov 2022 16:18:31 -0500 Received: from pb-smtp20.pobox.com ([173.228.157.52]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxaex-00067f-P6 for emacs-orgmode@gnu.org; Tue, 22 Nov 2022 16:18:29 -0500 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 59ACB1DC789 for ; Tue, 22 Nov 2022 16:18:23 -0500 (EST) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:subject:message-id:mime-version:content-type; s=sasl; bh=lSE wxPeGPZYiEQxnapgFlZLd+NgxMm5fKYyNUGtamhE=; b=toAzwPxcfO4BMvV26Wu 63zSB0ceTVbf1+BCCoW5G3jCGURNmyQSt/yZKvDGz0B2WYsmDbAUgvw9QFjKByfe BJQVBewjo12F1lpmesb3O12aPjO+jwQrjf/Jg7qhzLBJ2C8gpsQSD42MPfYoJU27 uIP11FwieuoXjRUKzC1eP2jA= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 51E521DC788 for ; Tue, 22 Nov 2022 16:18:23 -0500 (EST) (envelope-from wtd@pobox.com) Received: from shell3.miskatonic.org (unknown [199.103.62.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id BEB4F1DC786 for ; Tue, 22 Nov 2022 16:18:20 -0500 (EST) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id B68E8120947; Tue, 22 Nov 2022 16:18:18 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id AF4BF120474 for ; Tue, 22 Nov 2022 16:18:18 -0500 (EST) Date: Tue, 22 Nov 2022 16:18:18 -0500 (EST) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: emacs-orgmode@gnu.org Subject: Images generated by R code blocks do not display Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Pobox-Relay-ID: 30BC05F4-6AAB-11ED-9415-C2DA088D43B2-56320186!pb-smtp20.pobox.com Received-SPF: pass client-ip=173.228.157.52; envelope-from=wtd@pobox.com; helo=pb-smtp20.pobox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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=1669151952; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wwKWQGEsAlgagWNP7nO9iPGgG9iL3oroCyTgeuUr7c8=; b=psU8C9E1S3Ini98OOhPPWFMOreTAtqlelJVAP0Gk/RMo+XjRJBeLHUZP7oydLFpPWjVsvZ AryJrhaR2LbzIGdSYygERBAStHJXFeL+8+LwjpYunqbFVOyiDhyHQBHAma0NzULzqkosd8 5lAkeu4Q+Wnmj6PjFBrNtQKPTovCFOM8RU7c0/pqKARPO50VfMFBrqcbmIaRo4oNLt6ep2 bgkC67vS4oRVgOqSwtXCgqXmZnBmN467nV+RxLZxUvCIz0+KQKP799cjX6yOplHQLr0N7H KdBcHlAfow2Z+JQV8TCQpKUPacba8AVxhC5O0PDK9ovsvg/qtruf5eCfH4isYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669151952; a=rsa-sha256; cv=none; b=WXigo3yI2tsDCTh0rqN4iI+azDdjHYTm2M2rvIjVR+DAdW3ogBlppMzPAa1JGZ27LI448S PLdoVttyhDWWoVyTr9cqUBVyjPcQ15rXV1z8TKdeR3dGd9dAQjtvWnc3PvuVMZY1B7ccuz sZbPSYWHifZ+z++d4zVpdRxSHmlMaSz/ZXFgteSI/z8mA1o8ASsIskIDflEioMZZqjD/W+ Zu/JSil4rRPXoI9Qgmy5aXe1UmvoKMSIlCkzqezKzfzzj+iK5cutlqaUV0fjkt7msslah3 JPxuBStlSJNoPNMZEXbLNvm1gn7psvo2x0svOge+nRKSdXE+0x6M3Exv5oNbyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=toAzwPxc; dmarc=pass (policy=none) header.from=pobox.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: -4.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=toAzwPxc; dmarc=pass (policy=none) header.from=pobox.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: E9114B7E6 X-Spam-Score: -4.10 X-Migadu-Scanner: scn1.migadu.com X-TUID: XlTWBJnAnMp7 I have a problem with images made by R code blocks in Org: not being displayed or refreshed. (This has been going on for a while, but I can't remember when it started.) Here's a minimal reproducible example I hope others can check. It requires R on your system and the ESS package. First, here's my minimal-init.el file: #----- minimal-init.el (setq debug-on-error t debug-on-signal nil debug-on-quit nil) (add-to-list 'load-path (expand-file-name "/usr/local/src/org-mode/lisp")) (org-babel-do-load-languages 'org-babel-load-languages '( (R . t) (shell . t) )) (add-to-list 'load-path "~/.emacs.d/elpa/ess-20221121.1627") ;; "/usr/local/src/ESS/lisp" (require 'ess-r-mode) # ----- For me this runs Org from the source tree (up to date today) and ESS from where it was installed (package updated yesterday, as it happens). Adjust paths as necessary. Next, here is r.org, with one R code block that makes a simple chart: # ----- r.org #+begin_src R :results graphics file :file /tmp/plot.png :width 300 :height 300 plot(c(1, 2, 3, 4), c(1, 8, 27, 64)) #+end_src # ----- Run Emacs: $ emacs -Q -l minimal-init.el In Emacs: + C-x C-f (load r.org wherever it is) + C-c C-c (to execute the R code) + Say yes to "Evaluate this R code block on your system?" + #RESULTS block appears (good) but image does not show + C-c C-x C-v (to toggle image display) + image appears + C-c C-c (to execute R code again) + Say yes to "Evaluate this R code block on your system?" + image disappears + C-c C-x C-v says "Inline image display turned off" + C-c C-x C-v says "Inline image display turned off" (and so on) Expected behaviour: Images should appear when this code block is run or rerun, and C-c C-X C-v (org-toggle-inline-images) should toggle the setting, not keep it off. Thanks, Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada