From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UClBMShURWAZJAAA0tVLHw (envelope-from ) for ; Sun, 07 Mar 2021 22:31:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uPnuLChURWDFagAAbx9fmQ (envelope-from ) for ; Sun, 07 Mar 2021 22:31:04 +0000 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 66BF025A17 for ; Sun, 7 Mar 2021 23:31:03 +0100 (CET) Received: from localhost ([::1]:37166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJ1vR-0001mi-AS for larch@yhetil.org; Sun, 07 Mar 2021 17:31:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJ1rg-00072m-1D for emacs-orgmode@gnu.org; Sun, 07 Mar 2021 17:27:08 -0500 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:44266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJ1rZ-00075J-0O for emacs-orgmode@gnu.org; Sun, 07 Mar 2021 17:27:07 -0500 Received: from pps.filterd (m0173170.ppops.net [127.0.0.1]) by mx0a-00395d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 127MHL30006871; Sun, 7 Mar 2021 14:26:55 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsd.edu; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=campus; bh=iiK/P7v0pOGtLVHP2APQ/VMoHArWDpDFSbvvvisRh40=; b=OF8b5zyNUw5ZC9LLMbH7lHqKXw1/cDsnYpVjifS6bCS4rh31pVwNJURk7ThQC/OB4q4X sg/AnKvwNnfrx4VhpbwdkeFn33Qyz0aiPYEZxlbVUqk0Z39ESC/88bY3D+4rQzPFberm 6Pbg6Y52V3mc8XZTDEXvZvfmsaJ7Td10uyarZKnpgO05MyNxzdWdLsv8Hm0AEWlw4wan uy1VlMFQxq1/sUcchQB4EzK1sumpIFT635fxOQwQWnneZ5NKwz5rnNP+YUDHkWSxbH0p CuLrMpXuxw97cP0P1xUal5G+MAx3OTi7jhHJhERZ2Z8GtTXN9jn+OZDmM3cQg0948JiM 5A== Received: from secdlpezp04.ucsd.edu ([40.112.251.180]) by mx0a-00395d01.pphosted.com with ESMTP id 37487tsr1y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 07 Mar 2021 14:26:55 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O5S2KetJFOk9Iyk1nHW4YwWj6DlnzZFPgpSFSLSTGfGapI27VahUYv9W5XMGB8i9PRWTcH67Gscgn5x6GnISRyR3oiHD2XhGMelgv3g6D6BXPFcQkzY1ezgnYQCv/xaSJvExHDpVTJzjs5f6crXr99PqwgcpLoOaN7/ffYWekFfMUIlSvMKeWyAxLE5ez0Co7pIDKvgDPhU++6bQ8GcEz+5v3zBTTrT0eegO0B1XnlHfUfcXGBWDbNHKJ2v5RZ4FUzj3sJOIHSQ2Ia6l/V73Ji2mO3QxNm1JofhWhMBbwFcl557NRUEnZ6c+ykFF7j2SwG2ekrWGZdhVL7AT/BCIOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iiK/P7v0pOGtLVHP2APQ/VMoHArWDpDFSbvvvisRh40=; b=RDX5NRjo9OXLiu18Qn1bBM/7EcLVSvBzukJeKswDZLmZ74liX4hjEBOBS3qnx3j9rkNnYgNJbQ2aQZ0KsLZk7p6/s2VEC+GezH60ur30wqUFnPWb92ruyv5ScJ7q2JInXj4HwlOUUbq1rIU52/Z+5NBoH8yFnG4NtjHI6ZQbCXVUdUIhuA/7CHsSx4hQJIL3X3Eh2INwygllja6bZB1FiCW0q+jsHZPAgMgNMT9smy2n3Tpyw0nYMDKlRlLMK2HM0kRAvRHrTKQQYZwpKXtrjbmlyep10DiQZ2yPS1ZPLce9Kw9Y8zhuXq7xow7yqteomFfaxihNBZr9I0jdvsyuIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=health.ucsd.edu; dmarc=pass action=none header.from=health.ucsd.edu; dkim=pass header.d=health.ucsd.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsdhs.onmicrosoft.com; s=selector2-ucsdhs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iiK/P7v0pOGtLVHP2APQ/VMoHArWDpDFSbvvvisRh40=; b=OIwxCRyKCs537G4JwQ0WpFy5RZblXDMcqBaczvwl0LHCIA9p9bcyg9Tk3oWBdvPWRliiY5xN7RhERWB2XvF7qJXA68SExWz8jjkhn6dt/z5eJS9LJljKa1lavFO9rQ9dJUp6bUVcOhJKzvW/N+BqKU/scIYBE7HMK9sSaIM6cNw= To: Greg Minshall Subject: Re: org-in-org Thread-Topic: org-in-org Thread-Index: AQHXE2zreIIiHmvkMkeuBinIpHhbd6p5GxcA Date: Sun, 7 Mar 2021 22:26:53 +0000 Message-ID: References: <1775874.1615133649@apollo2.minshall.org> In-Reply-To: <1775874.1615133649@apollo2.minshall.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2600:1702:1021:b0:3893:da69:79ce:b635] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1d538d00-f43e-478a-388a-08d8e1b81c16 x-ms-traffictypediagnostic: BYAPR19MB2550: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Uc+AXpEnHxxG7ldwRl43akOFHJLfC1iNLw4I7FiuYmzAe7QkM68WSFcXADW8ZaYEJbZRCaOYTxrvXF7FAYCr6+IrvkKBOPCPcw5F2n2ggx0Fp3YZLoKMK3ka5OW53UdzTEqgkeHiAEV3K6Sz+hI+CIMJZO2HCqjA4bUPPkKKnC660qqEq1E6GPUX069YH83ryTjVRCqeH9aDAatn8lhIkCga3hJmiAZtS3WwlM0k+0QwPQX6pJLs+KLF3ltRkBM5/Y9ujVpH5cwlRA22rBB51Iuh+Qt+kmpzfPPo1iQc+MmGVWqG6z20c5qotXX+SeNQWZOxEq7OVcYKJbjsE/7JD3+fTem7xZr59itDthGqw+erRraeaTaChkf3skTsut4UjL3tDSCHSVu195rD3k3SQG3rn+cvBeXrbO/Bky8amgG7oQVIcDPJ21eviSxVYOPwGEK01Tdjy2JL9aCwMayNFCKPUhqrU27EoyihAOGPq6OdrAEya6CWB0JgC9ASJE7d+gzAE4KV0H8zlKQe8aYsRBNx4mAaiWR5/3x7lLsnJdmb5diifEzDfLqUL06h8HcKW2KfchBVCyThGRaEcPLhFg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR19MB2581.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(39860400002)(346002)(136003)(376002)(366004)(53546011)(75432002)(6506007)(6512007)(186003)(478600001)(786003)(2906002)(86362001)(316002)(83380400001)(66946007)(5660300002)(6916009)(2616005)(6486002)(3480700007)(8676002)(71200400001)(4326008)(33656002)(66476007)(8936002)(66556008)(64756008)(76116006)(66446008)(45980500001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?tCuxZlagl+OiZtlC2dIw7g1721OMjm59IcRsoKeuVCyGKvOaI6mWJb3XTUyI?= =?us-ascii?Q?iZQLUbV15BbbEaa73Pfmf0UTjM84AZC3dJDKMKZp3zoT9HxG40AYkLF7QaP7?= =?us-ascii?Q?90GhrcbSOyr3toLF1VD6O2SXRTMi21uEB+xtZiZZmx6ttnQL5+Wh9SKFxlQD?= =?us-ascii?Q?m6EGHhlPOrvpThFLPUdcNTE3MNmZGRLWeQ0wIwLoLKeEhHa5Annk7hSfXgvm?= =?us-ascii?Q?BTyJ1s3LWn80IKL/pEt9OHrB7FtZI5HZCj51HR0gLBAjEyXM14GCiXLt8rog?= =?us-ascii?Q?lRKtZp6I/SvRCK5SZMafN7Tu77qoNWwA0kFjlmNqX343inJr2cjRQdEkdmhH?= =?us-ascii?Q?8fhFSnaAgIk9JXn3sIe7573zJMS6nO/rBf/TuEUJgNwFTg5sAye5bbXVeoUw?= =?us-ascii?Q?2yHnRRjVCPaFCDMet5z4EPCKMroZuUnp97nXwmjahAegFzThHOhOuGsyhx7M?= =?us-ascii?Q?DAM4D0IGzprzWXlWRF1VwZ24sYC2TjTPEje+dWUaHmrmBwTJ6NIHVGJ591ZM?= =?us-ascii?Q?FHvJVkIlGT2ysvcturQOx2JfAGiPL4lSE0XVhg2M618L21fbY4N8OZRnH8eP?= =?us-ascii?Q?hYdlFk7xobQ7hjCUtbyGKVVy+T+cVytvA/u8LOWUXGgTNH3V4aYTNN0uyvj6?= =?us-ascii?Q?zk8OdUpBSpx2fDPQIFoUmgJrNpA13FUQDeBtiaUmIqpjAuYes7CFHG9Ff+t/?= =?us-ascii?Q?egFDUTIjEBVCQxH3oPoTS8OW6Glh82r4p5TSciXCCgy1U65mgatGM2cocntH?= =?us-ascii?Q?KSG1wp1Hp7csmEJdFlU0C6AHf6wwkV+qYWsT99SbdcCfOC/9aj3JYo3P+SJi?= =?us-ascii?Q?PiI8nMdsvBQfbY1/PN9oYyglR1m7xxWuJQ/U11x44g//EDXw5O1Q/pvNna2w?= =?us-ascii?Q?IUecCr5zwV34gehh2dcSoeemuMfhg2OVKPAR+g3oFiXMpxMxEp8UcNO2N2qj?= =?us-ascii?Q?pdjFWE0QnnuDoPl+UObr4ppudoNVZiQ1DKckOpNAz/xWAm1Uu12VFAIX0N5g?= =?us-ascii?Q?YNutpxecODkCIO1/FCeMj4M681MaFjcaE9IPbQh7TeQVfmdyWYyRQpEhg60I?= =?us-ascii?Q?c0fVBFt+OTgsKBKgLob9J+ngcq/BVYwRBkhCpBK4p0BNGp5gSWVsBFohXFAW?= =?us-ascii?Q?MPWj0x+LvY+pW1vjSs5xC+pBnzYTwgmeaJ/7xCzsS53Wsrie2vCHhTTuvryB?= =?us-ascii?Q?0rSD9OKB8jvFdqOgRsdZ9M5javdNUeBjgNfPVTPJa4VTpWAEN/qQn05YB594?= =?us-ascii?Q?npSCVJm4Ppad1NMW89vrNp0az/4kFLMGU9qOC719d+and6ravq254n4Qqfix?= =?us-ascii?Q?4KS2tmZSSLHrxuxBCCCUNMXNv3isP8756myW2tWQ8B62gwA1AIisQYH6jBBn?= =?us-ascii?Q?AVwa31qMinTz4yefIGGHS9p0pKCC?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <8C4F8BD7F729894F9548E2D10C5DEBBF@namprd19.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: health.ucsd.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR19MB2581.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1d538d00-f43e-478a-388a-08d8e1b81c16 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2021 22:26:53.3106 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e470d736-e7f7-41a8-8eab-dad544b2b579 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: P2hfFrMxOMYMIAMMXMqrik9GoTf2a6b5H4ZLRZ5IralxUxsKs8K4Opc4+B1Xv9bBItjdRk8SE2a04DM2duZnqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR19MB2550 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-03-07_15:2021-03-03, 2021-03-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 suspectscore=0 phishscore=0 spamscore=0 malwarescore=0 bulkscore=0 mlxlogscore=716 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103070123 Received-SPF: pass client-ip=148.163.133.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0a-00395d01.pphosted.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" Reply-to: "Berry, Charles" From: "Berry, Charles" via "General discussions about Org-mode." X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615156264; 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=iiK/P7v0pOGtLVHP2APQ/VMoHArWDpDFSbvvvisRh40=; b=W/Tz6yOnxCuW94G4RUzWuD42ft9H8qo+tb6iGmAyeDP6LySN07sHhKZKUZKCl05Jluju5+ /sfE7cj96CN76ai2eNgplYtp3B8ulX3aLDihMA1T/S0HYqesD6eoPLcAcgl78D/+JboPU7 4wm4PdjcwBHmvzNwdXk+GXMxRFdx9HhgDeXeWi6Ll6/pDG73n9fdiRaXldCGFuaQFmS3CY /eAJpOgXjN8Qw3/hI6lrv5F9NlyJu8uWr4AXhx2wEJRxvBvgeJyoJASrV4MqvkTk7meiom RHZPnbk3YVEiak+irA8KWPp0j8wwTNPLTHIRoeNa7wqvyZ+hTgq95yDAKfoNpw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1615156264; a=rsa-sha256; cv=fail; b=fF9AzSjATxYpiAoO5KwubvM6rzsZqVbOCQr8dM64v2UWAecz0B2+x6C2MCYlH66Vxcf0eG 4V7+sK9eY09D1R8Xyjdz3Vh/LZCuYwOhze3KNdBT8ACW+aN4OQCc8zkNS8ZHPa0QRwokPr InhYKQrm3HWM3hx3v3mKDtC2lUXvJ4oGRYF53vKSeljfeSD6emGszKAADbTf/AgeoYilbi 6sdmEkPDpfbMyEA4/iXopEZHRULkTzEtqyuxIDKykwFDVHMZEp5Lmr2f9Ln4fIp5XyMIWD 2avK6Tych5mcH/DB60GlndDLh2yvTx8mYzCc9mrBOeBkLRBwUsYQE+3zYQeHPQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ucsd.edu header.s=campus header.b=OF8b5zyN; dkim=fail ("headers rsa verify failed") header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=OIwxCRyK; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.88 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ucsd.edu header.s=campus header.b=OF8b5zyN; dkim=fail ("headers rsa verify failed") header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=OIwxCRyK; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 66BF025A17 X-Spam-Score: -0.88 X-Migadu-Scanner: scn1.migadu.com X-TUID: FWFAezSxcRrj > On Mar 7, 2021, at 8:14 AM, Greg Minshall wrote: >=20 > Charles, >=20 > thanks. any thing you'd like to add to the R-via-ESS/org-mode > repository, that would be great. >=20 > in general, afaik, the contents of org-in-org buffers export okay. at > least plain ones. would could like to have the embedded code blocks go > through some pretty-printer, but currently i don't see that as an issue. >=20 > as i mentioned to Jeremie, an issue is getting the org-in-org block to > do its export. i don't know if creating a recursive "execute" function > for org source blocks -- which would cause them (modulo :eval, :exports, > etc.) to evaluate their source blocks -- might be useful. >=20 Sorry, I do not know what a `recursive "execute" function' would be/do in = this context. --- You said to Jeremie: =20 "during export of the *outer* org document, it could cause the inner org block(s) to be executed and their results revealed." AFAICS, the document below does exactly that upon export and can be exporte= d using a command line idiom with proper attention to init-file issues (and= let binding `org-confirm-babel-evaluate' to nil if you want to run in batc= h mode).=20 As an example, html export will create a document that displays a `
 block with the R src block named `readdata-code' and=
 the `#+RESULTS: readdata-code' block in it.=20

--8<---------------cut here---------------start------------->8---
#+begin_src emacs-lisp :exports results :results none
  (org-babel-map-executables nil=20
    (let ((org-confirm-babel-evaluate nil))
      (org-edit-src-code)
      (org-babel-execute-buffer)
      (org-edit-src-exit)))
#+end_src


#+NAME: readdata-code
#+BEGIN_SRC org
  ,#+NAME: readdata-code
  ,#+BEGIN_SRC R :results output

  read.csv(text=3D"a,b,c\n1,2,3\n4,5,6",header=3DT) -> mydata1

  summary(mydata1)
  ,#+END_SRC

#+END_SRC
--8<---------------cut here---------------end--------------->8---


If that isn't what is needed, maybe you can provide the desired output when=
 exporting the above sans the emacs-lisp src block.


Best,
Chuck