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 ms0.migadu.com with LMTPS id MGkGKd+Q4GHBvQAAgWs5BA (envelope-from ) for ; Thu, 13 Jan 2022 21:51:43 +0100 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 sJhfJd+Q4GFG0wAAauVa8A (envelope-from ) for ; Thu, 13 Jan 2022 21:51:43 +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 64F9210F59 for ; Thu, 13 Jan 2022 21:51:43 +0100 (CET) Received: from localhost ([::1]:45012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n874P-0007hd-7n for larch@yhetil.org; Thu, 13 Jan 2022 15:51:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n872g-0007g1-LW for emacs-orgmode@gnu.org; Thu, 13 Jan 2022 15:49:54 -0500 Received: from [2607:f8b0:4864:20::931] (port=38836 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 1n872e-0008Ha-TF for emacs-orgmode@gnu.org; Thu, 13 Jan 2022 15:49:54 -0500 Received: by mail-ua1-x931.google.com with SMTP id h11so13523766uar.5 for ; Thu, 13 Jan 2022 12:49:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=0oAt4rhaNadUmUCTyqP/8NOnm7agpeJxbtdjEspsFMw=; b=agL0iF1OIiBKxgTHW8ywen/RfvxSE8emFTAzbC5sb/FNMlkcJBdIr6XJUGFUzI51hS xTyb6YRuYUi6h/HEyDcGU9KyKU27BeUUuWFX7DBOooQx8SDvuCHyNMXFogj95ZS52TJQ FOCebHLd5MyZj8PPwL470kxujonFVQUqfVfi2wRFokpdUkqVrDzSILC7vVfocHmoiMnq 9Hs/DmxaLNOBjCZ1sb4rLBvVL7zL2s/LIQPyZVUb7A/5uW0Lk00+XtcimOv6r2XocdHL pw2IcYFFWaXf/T+1p04L0DHzsglh2+7MbkGnEiXpE1Yb0UvBbtB2ebUpR6G7iYc0xUxd XkjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0oAt4rhaNadUmUCTyqP/8NOnm7agpeJxbtdjEspsFMw=; b=x8ceJORCHHqQ2qwsIGSnAbibn3fYUOubLpln8IDSgDlfuVhaH9NncnJXKx2P6vikNF xdY5HccLeYKUnTvJwCrxXoK9dt0vlzUJRJtjl4LkuSSPLAkxB1EWJsd/DhO6qSyfoKRI DgNw/w9iJfntgOWY8/muEC+sIU0mZ9Ds3MO426fj0wpz4ayogI9WM11lIaBFEahPSIdx rX44Fa6OsX6wsZXlYPK+dKPf0vTV/w5vi9Du2+d9zziWkCzVqfjq2dOyi2R6z/rSvc0Z yXOmA0vikgI91D3AzWG10g1qCeguhQOMvskYAVzyOLa+JMAjLKxxeptmkOohdT6mNwL0 5mVw== X-Gm-Message-State: AOAM530qSByhAanfyLzznH9fKD9nRKcCWMSiWeqh/BKxq6aB0kyXhi9O +H/keSHnw3M1oLpm2C4jg0nIxSSDQv6DmHa8KBLDcNQBJiUnYQ== X-Google-Smtp-Source: ABdhPJwYgbRG6k81oiEZnppmtwl86jTqWB68/evbBdp3kCE12n9MzyQopmr8rXlwMK7pm3BwtIjUU3mEy2xuhLTUbvQ= X-Received: by 2002:a67:fb59:: with SMTP id e25mr2974680vsr.78.1642106991311; Thu, 13 Jan 2022 12:49:51 -0800 (PST) MIME-Version: 1.0 From: John Hendy Date: Thu, 13 Jan 2022 14:49:40 -0600 Message-ID: Subject: 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: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_20=-0.001, 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=1642107103; 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=0oAt4rhaNadUmUCTyqP/8NOnm7agpeJxbtdjEspsFMw=; b=X8aLB4dLIdI3vvGJSindI4+I9+eIAQOdeiA/3jcf9JcByxRDrneVGmcQlQPqvtAz+vjI8D ExofGhdlNd97FcC+qAnpl6jwroiRqV+N44LyqUFyvkcOcXWdfc0I9fWf0Ey5B9J0i6ythm cOwenqT0VUvvUKI9NXPiI4lkMzMHvbaRv4NJ86aF0CQn1G9QQSDXh66A+BLHVeXelYJ/hv 6YVvi+8IFiMHeSRP/1SJK3jAjVYRG7f9A1raD1s+nUqEzS23S7mURu8+RjZn/jWotFOQu+ fCVvyLir78S0iZPFMzx72bXIC1TfZdjd6FIzlJ9f9/Dgq3G29iYwsJ4BX5jrgw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642107103; a=rsa-sha256; cv=none; b=bA6S3iUhysTaHTGiDN8fm1w5VEf3iyTR/nUzYUV2qBaI5Fmjgz2DBKGGqc+YlNbf/1FBdy xYITa4gycoJuelnda8cOgj2vMT8hmCdKQhKdo+1FDPQ1mzhzCEJqWVEToDMkt4JxXHLGge CHmQgah8fJi2cCbxiaAZguqtUj3cmK5ROR2h4MH8bb1kLBiuoBAC6/FLLg5r6RJK48wZ8y OsWbKaUoSYnyXDvYlFut2dPjdV5Th2inU1QJJBY3+ps3i+4OecWRSce629fyCcDqyfLL6b qMb4BnfUUy5Gk2+BRhgJZy4f49DH3IlVsV8a05SpFFZaSkAO1Oln0IfZlrHxHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=agL0iF1O; 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.42 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=agL0iF1O; 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: 64F9210F59 X-Spam-Score: -4.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: /7Ymrb/7m5mf 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