From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QDM4BLDo4GGSIwEAgWs5BA (envelope-from ) for ; Fri, 14 Jan 2022 04:06:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sgeIAbDo4GGCDQAA9RJhRA (envelope-from ) for ; Fri, 14 Jan 2022 04:06:24 +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 CA9CE29517 for ; Fri, 14 Jan 2022 04:06:23 +0100 (CET) Received: from localhost ([::1]:59970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8Cv0-0001OK-VA for larch@yhetil.org; Thu, 13 Jan 2022 22:06:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8Ctp-0001NC-SN for emacs-orgmode@gnu.org; Thu, 13 Jan 2022 22:05:09 -0500 Received: from [2607:f8b0:4864:20::931] (port=42941 helo=mail-ua1-x931.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8Ctn-0001y1-UQ for emacs-orgmode@gnu.org; Thu, 13 Jan 2022 22:05:09 -0500 Received: by mail-ua1-x931.google.com with SMTP id p1so14767214uap.9 for ; Thu, 13 Jan 2022 19:05:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=EECF4mnbd21Xlcs61rxvyCBcTVLkitj41cAySjDqC2k=; b=XKnZoCrgFqKMfxYyVjBnjIfPel9UlgTP97VvaqgU3u3RWSB8VaBlQDYBKol2mTwxnf lJGIY4rSAYNYilUwqfzMdxbuohMdrGLDeMFjX7nVx0nDVx8EM5thsWNeBLCggoLlFU/P 2xnVkTk/cmPKvMSywvRCoHT5PxOGUv1kKGXo8faCvrgu8zL1ytMYkJdV2sTVLMVA56++ D0I+iW60hEPxf1yXS8ZcsDpKseRZfpqrkluei2vixVtpTSOgrNFRmnz54rntItOZqtJ+ fxJFeBmhPp0axMyAg79BHI5MFvqWgwkiyEeiC/fApqmpG+JQv1azsiUQ9naTFkBdSA5r mw3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=EECF4mnbd21Xlcs61rxvyCBcTVLkitj41cAySjDqC2k=; b=OHxJRlXIOaTQy5ofPJ9+PyU3IEPdEiMQ+NyJR013eSzqmNj8dl+6/K0erjZ+LheQX7 7MWG5dK0u0h3IdOMYQBREzFCCTAizng69faK/Wl4VWESg5mJ7q7bo3axnZI03n9KJTGW /+j1wF9UZgezUNoCvmD2uLoY9gJpkXIxR07E0tIp1spSToI75Lczetblz1wbjbD0FY4l xmjf/oIbojYzCeSkga9QZfcF6CmFH97CSYfC6MxCJ2TM2b6hiblDeAm41Wl8Q5cjddQz rnWgNXDZUZFMz2cCfl/3p4jRUyd6kpp0syfhxaU3Z86A16B9iy1TFyop/SxL7f3VCKCC KFYg== X-Gm-Message-State: AOAM530A/84WoM7PWYv4fDUUAiiP0yKcuUp1bFujO2mRDeTnnAVoyoif IatlMhs0UB1fSYkFxiY7lbhjhQu8i4Bd4+mzXPJwQNhUP1c= X-Google-Smtp-Source: ABdhPJzJovg10hySHrm4RziywLImqt67her7IrXmdMplT3vDTxOi0CHhsw7wo/g28Vu5GeSzdcmg2m5BIjYEffrkS8Y= X-Received: by 2002:a67:e3a7:: with SMTP id j7mr3627841vsm.81.1642129506804; Thu, 13 Jan 2022 19:05:06 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: John Hendy Date: Thu, 13 Jan 2022 21:04:56 -0600 Message-ID: Subject: Re: What determines if R source block output is wrapped in begin_example or not? To: emacs-orgmode Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::931 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::931; envelope-from=jw.hendy@gmail.com; helo=mail-ua1-x931.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" 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=1642129583; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=EECF4mnbd21Xlcs61rxvyCBcTVLkitj41cAySjDqC2k=; b=hT7DU3D1vb1tm+t/UlbIHGnkJINpsusfTTV9EfnruBB6jtk87faPfvWRBroJVkg2Hm38Fz iGXewvh6TYsNwqEGwtgvkrzmEP2c32BfF5XqaEwKoh4iNta+M+YBFw6yApbm+eLVjgajAF biS9W42HPhhk3v9oXRjzFC847QUMe5gRTPkmvpVbALM18XMO0g6Mq36XUhTR30kP8IAWPO aHyckpscS3YwyxFJn0d1/SVHYzCoVNZZagBSC1RSArlIvdXr5aNlyFRD1rr6eruoM4wMnm XOYOCGypq8fvP7r9Kb+YhCocwepNaji1Hn5+3qytYFVLpqzUIhtmBH/FlB1y9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642129583; a=rsa-sha256; cv=none; b=FIcop+xoy2fCHLX3SJR2ZjJPAQJ9z50m7pI/jFgOj7yMzfZ97u/lCIOYBW4y0M2CSS537p fsORq16sgUX7YDoZiaxgWFszxKz6ep+E03FbHEyYhoVxO4iHS/Pixp4d9/3/jAzcCWEfsR tJsJxqE9HgU7r0+td4XhIk7iWNGL+kboUcZ9ORZ896cnu4TNRtQhLHur0S0VmqQv6oi/Lh Yl3/vIzpOjmXDdpNbqAfHf3yJToCTHUj4wzxrdzbNJdSRcCvNea+dZwjma6jC8MsB/0iJk 2cDM3/ECvMFDzzFMEXjKHNQxdrphVQ9KsOV9TmWWh+aePgvSj4rQGyN6A2L/7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XKnZoCrg; dmarc=pass (policy=none) header.from=gmail.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.82 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XKnZoCrg; dmarc=pass (policy=none) header.from=gmail.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: CA9CE29517 X-Spam-Score: -4.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: LypmiSEqRy2+ Possible false alarm. As I continued to work on this, I accidentally didn't use :results output code, yet the formatting was fine... I'm wondering if I had a dangling #+begin_src with no matching end? Still, I am intrigued by the toggle between prepending with ":" and wrapping in example blocks, despite what appears to be no practical impact at this point. John On Thu, Jan 13, 2022 at 2:49 PM John Hendy wrote: > > Greetings, > > I was perplexed when a table in my exported latex/pdf document came > out garbled, to find out it's being included like "normal text." In > another block with well-behaving output, I observed the same src > header args, but it was wrapped in #+begin/end_example for free, > without me trying. > > Here's a reproducible example. This output would not look right when exported: > > #+begin_src R :exports results :results output :eval yes > data.frame( > x = c(1:3)) > #+end_src > > #+RESULTS: > : x > : 1 1 > : 2 2 > : 3 3 > > From trial and error, it seems the magical length is 9 where it gets wrapped: > > #+begin_src R :exports results :results output :eval yes > data.frame( > x = c(1:9)) > #+end_src > > #+RESULTS: > #+begin_example > x > 1 1 > 2 2 > 3 3 > 4 4 > 5 5 > 6 6 > 7 7 > 8 8 > 9 9 > #+end_example > > I see nothing like this mentioned in the docs on the results of evaluation: > https://orgmode.org/manual/Results-of-Evaluation.html > > For now, my workaround is to use :results output code. I guess my > typical output must usually be longer than 9, or I use :results value > and manually add header rows to the generated org table, as I don't > recall dealing with this before! > > Thanks for help understanding. > > Best regards, > John