From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 qCoKLZQCUGNYBAAAbAwnHQ (envelope-from ) for ; Wed, 19 Oct 2022 15:58:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GBC/LJQCUGMsVQAAauVa8A (envelope-from ) for ; Wed, 19 Oct 2022 15:58:44 +0200 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 3CDF6CBD6 for ; Wed, 19 Oct 2022 15:58:44 +0200 (CEST) Received: from localhost ([::1]:38032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol9ak-0001a9-S5 for larch@yhetil.org; Wed, 19 Oct 2022 09:58:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol9Y8-0001VB-HF for emacs-orgmode@gnu.org; Wed, 19 Oct 2022 09:56:00 -0400 Received: from forward100p.mail.yandex.net ([77.88.28.100]:47168) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol9Y6-0005gB-0s for emacs-orgmode@gnu.org; Wed, 19 Oct 2022 09:56:00 -0400 Received: from forward502p.mail.yandex.net (forward502p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:121]) by forward100p.mail.yandex.net (Yandex) with ESMTP id CCB3D4F0B7A5; Wed, 19 Oct 2022 16:55:49 +0300 (MSK) Received: from vla5-04fcbc3a0ab0.qloud-c.yandex.net (vla5-04fcbc3a0ab0.qloud-c.yandex.net [IPv6:2a02:6b8:c18:3484:0:640:4fc:bc3a]) by forward502p.mail.yandex.net (Yandex) with ESMTP id 25C31B80E30; Wed, 19 Oct 2022 16:55:44 +0300 (MSK) Received: by vla5-04fcbc3a0ab0.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id k4HOa796bU-thUWojBK; Wed, 19 Oct 2022 16:55:43 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1666187744; bh=/hlgd8sYc9z7HQOoSVt3X+6xdi8Dw3QqLJKEsnNtclc=; h=Message-ID:References:Date:Reply-To:Cc:In-Reply-To:Subject:To: From; b=ur8JRAw6YQQIclAYDYICDEOq5izrwjcbJ0EJiuezewMreWG1nv5e2fdmF3q4D4LN7 alVRVZpdOWx2bmtki4o5BCwQzZyHFQILBphU9X7q/wflO99aGlsmA8CIPut57aRp96 5AsPABBvrsdbJEKU9M/yBnueOjQz7itXaRIpxptU= From: Colin Baxter To: Naresh Gurbuxani Cc: William Denton , "emacs-orgmode@gnu.org" Subject: Re: R code blocks in org version 9.5 In-Reply-To: (Naresh Gurbuxani's message of "Wed, 19 Oct 2022 13:27:51 +0000") References: X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Date: Wed, 19 Oct 2022 14:55:41 +0100 Message-ID: <874jvz2a02.fsf@yandex.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=77.88.28.100; envelope-from=m43cap@yandex.com; helo=forward100p.mail.yandex.net 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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: , Reply-To: m43cap@yandex.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" 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=1666187924; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/hlgd8sYc9z7HQOoSVt3X+6xdi8Dw3QqLJKEsnNtclc=; b=JNrR7NPFKzzTr9nMaAgqsglp2ndLTq2VzAi7w+nhhGK+OXy5D051D9wBrKYJzJ5VSlR8rt /7k2ds8fZ5P2ztXJqWHkRu/nHoHmLwebSEDNh8839/YHOtg7f2ynU6JW0veGZcsi3JkLxs CE0owH2NQG8MN3PVRM9b+a/LlDf3jU0DBAMP7TEKQ0/arEodXcaReSZSy3HJ2zpB4LFXfP 8Cd415MmyZxpjo5w2c/yL5BafRpVJ/pKusZpfLVO9yuilxNL+ktWWXMusE8GTOeQVPQJ4k tI+7KSyKyPX822eDBQYb4zvWHEXkHA8TJYz0kkHBjGDYhZo5t5VEXLBoUtOWsg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666187924; a=rsa-sha256; cv=none; b=ExckMJ2NQYtghRTL+8b2g4byLBCsPDC7pI0MkiICK19SGvHCVIbz85Huw9Um3fQl9yTpji PZay+0qZSkdo8T/BLmo2Phi/LmbvrZER85UcHb0rM0DHvQFlBKqXAjXZYhSwQXHQ1/bx93 HFSWdu187ExKz6MZMg+gtDAMcnNUTT6GOvq5H/YjRZX5+yP5bTx0eUmcmetOg6Y45ZjIl3 TJ10i/Pb7x42592DliLukagZ4PNQx+5MPD8D8ICsDXnNAflr6STbYHbeJ0sDSz2aTN3m7v c5ci7IvBX7rU7lA+uJE0pP5EaGE+m1z1rtIAT0USvCr5JrFsigqAg/QziaWUZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yandex.com header.s=mail header.b=ur8JRAw6; dmarc=pass (policy=none) header.from=yandex.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: -2.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yandex.com header.s=mail header.b=ur8JRAw6; dmarc=pass (policy=none) header.from=yandex.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: 3CDF6CBD6 X-Spam-Score: -2.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: Ie4ac7iJsYhz >>>>> Naresh Gurbuxani writes: > It seems that org 9.5 has simplified header arguments for R code > blocks that use grid graphics. > Org 9.4 requires :results output graphics file > Org 9.5 requires :results output file > Do other users find the same change? > Sent from my iPhone >> On Oct 19, 2022, at 8:59 AM, Naresh Gurbuxani >> wrote: >>=20 >> =EF=BB=BFThanks to your suggestion, I was able to narrow down the pr= oblem. >>=20 >> My R code blocks work fine in org 9.5. When I plot graph using >> base graphics in session, it works fine. The problem is with >> lattice graphs. With below header variables, code block works >> fine. >>=20 >> #+begin_src R :session *R* :results graphics file :file test.png >> library(lattice) print(histogram(rnorm(10000))) #+end_src >>=20 >> But this does not work. Emacs hangs. >>=20 >> #+begin_src R :session *R* :results output graphics file :file >> test.png library(lattice) histogram(rnorm(10000)) #+end_src >>=20 >> I can simply add print command to my code blocks. Is there an >> easier solution? I'm afraid both your above examples work for me. I'm on emacs-29.0.50 and org-mode version 9.6-pre (release_9.5.5-995-g4b9aef) Best wishes