From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 OpV1LOvifmOeqAAAbAwnHQ (envelope-from ) for ; Thu, 24 Nov 2022 04:20:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id Vd6kK+vifmPb3gAAauVa8A (envelope-from ) for ; Thu, 24 Nov 2022 04:20:11 +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 5AC2D4697C for ; Thu, 24 Nov 2022 04:20:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oy2le-0003tS-B3; Wed, 23 Nov 2022 22:19:14 -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 1oy2ld-0003tI-Bb for emacs-orgmode@gnu.org; Wed, 23 Nov 2022 22:19:13 -0500 Received: from pb-smtp21.pobox.com ([173.228.157.53]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oy2lb-000759-CG for emacs-orgmode@gnu.org; Wed, 23 Nov 2022 22:19:13 -0500 Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id BFEEF1DBC80; Wed, 23 Nov 2022 22:19:09 -0500 (EST) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=d/6StbAHwueqp/LYRCAp27wdz1K93jINA7g6s8 JeiYI=; b=CSf7+PrShOGUVNfFmwHhBWZBp3jb+fQ7GppK8Xqir9rvGHa67ZPiDm H3kGnoJHgvhISqpukkF0GN0RPq/WrTKxtaix1dl5tC5SSN9MZrsi3U49nsJy9lQz JGw7U8IBF5OZm2FHDGpdXmMXR4DG4t/8wRGz+efL1aG6v3etezE5Y= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id B88FE1DBC7F; Wed, 23 Nov 2022 22:19:09 -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-smtp21.pobox.com (Postfix) with ESMTPSA id B85AF1DBC7E; Wed, 23 Nov 2022 22:19:06 -0500 (EST) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id 8EA18120473; Wed, 23 Nov 2022 22:19:04 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id 887241203DD; Wed, 23 Nov 2022 22:19:04 -0500 (EST) Date: Wed, 23 Nov 2022 22:19:04 -0500 (EST) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: Ihor Radchenko cc: emacs-orgmode@gnu.org Subject: Re: Images generated by R code blocks do not display In-Reply-To: <87sfi9awmy.fsf@localhost> Message-ID: References: <87zgchaybb.fsf@localhost> <87sfi9awmy.fsf@localhost> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Pobox-Relay-ID: C1276182-6BA6-11ED-81F5-B31D44D1D7AA-56320186!pb-smtp21.pobox.com Received-SPF: pass client-ip=173.228.157.53; envelope-from=wtd@pobox.com; helo=pb-smtp21.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=1669260011; 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=b7vaCGYiLrPKM9vyocvth4q6yoYR6+qUkmWpTXbLa4g=; b=P7HNB9xZ16NfknxqIPFmIdk45KNhO9vd2544lr4PS4cU9S12XSMoXKQVOuqFbmNVhyy+wP twDc5R9+1Va1yZ8SufMxfFIKaEJZs2SPqN7Jt/YI5QcGerjbbjWO1lH5PJZiJuZvrPEItu j+Fjw+vEXLReNz+TVfU8+ZEYOiO3oDKgFlchcJHJnQenrf7RKRrJNsbc/hEybhg9I3Ihs/ CluolGpIPk5NlVqzgjsKM946WplqR/xhh60CqWyvK6EfsO6Azkh9dz1BSXNyP8qn9KZ4yy m2GkxmzuEmLKztM7BW5XJ2b67GCjjloe1pcZRCFPqaW0kVW0KKfQTM6RxKVmew== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669260011; a=rsa-sha256; cv=none; b=aEdSLpOIIX9sTvF3OYcrGwkiUOVZDFuI6aOkFeoGFW4+I6AHDhL6vS61vAHK/EyJq/M3lt xGehMtHjPZmCgVbzw/vv5yzL101/yJGb9d4pHc4Hv+mU2Se43QYUaQ3H9/iDIQleESdD9z sYAvcQzrNSBsZJRRuf/wO+2S1LMG/vq/3vIpVSQTAhIewz2NYntpLVEZNjpOnOKG5OIFBy IZHaL3CEoKyEN1B8/AxazudIk1qCfW4W860KVjXc4ARDrA1+kL+CKTcJ4PUvXRXc70BuHR Qlfi2T4XZwA3+0ikKBvVu51QMPf5A1AxvTABDFWwSvneOrS9absfaECj3HTyNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=CSf7+PrS; 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.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=CSf7+PrS; 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: 5AC2D4697C X-Spam-Score: -4.09 X-Migadu-Scanner: scn1.migadu.com X-TUID: q/vr3BBAGl2T On 24 November 2022, Ihor Radchenko wrote: >> The image should appear immediately in the buffer, shouldn't it? > > No, it should not. > Though it is often requested. Huh, strange. It's always done it for me, at least with R code blocks, as far as I can remember. But back to my original problem! Here's another angle on it, with images not being refreshed even though they've changed. Setup: my minimal-init.el from my first email. File, 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 # ----- Steps: + C-x C-f (load r.org) + C-c C-c (execute R block) + answer yes to "Evaluate this?" question + #RESULTS appears, but image doesn't show + C-c C-x C-v (to see image) + look at /tmp/plot.png: it is 300 x 300 + edit width and height settings so they are each 500 pixels + C-c C-c (execute R block again) + answer yes to "Evaluate this?" question + image disappears + C-c C-x C-v (to see image) + image is still 300 pixels square! + look at /tmp/plot.png: it is 500 x 500 + C-x C-s (save file r.org) + quit and restart Emacs with minimal init + C-x C-f (load r.org) + C-c C-x C-v (to see image) + image is 500 x 500! So R is generating a new, larger image, and it's there on disk, but Emacs won't show it. Thanks again, Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada