From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OFMYG/V1NWDKHgAA0tVLHw (envelope-from ) for ; Tue, 23 Feb 2021 21:39:01 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id bzCmFvV1NWDiHAAAbx9fmQ (envelope-from ) for ; Tue, 23 Feb 2021 21:39:01 +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 aspmx2.migadu.com (Postfix) with ESMTPS id AD23A1F6AB for ; Tue, 23 Feb 2021 22:38:56 +0100 (CET) Received: from localhost ([::1]:39490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEfOQ-000324-MA for larch@yhetil.org; Tue, 23 Feb 2021 16:38:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEfNk-00031W-Pu for emacs-orgmode@gnu.org; Tue, 23 Feb 2021 16:38:12 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:38809) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEfNh-0001H5-Lk for emacs-orgmode@gnu.org; Tue, 23 Feb 2021 16:38:12 -0500 Received: by mail-wm1-x332.google.com with SMTP id f137so95120wmf.3 for ; Tue, 23 Feb 2021 13:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=gK9cFScmj/J5tmGrzYH71tOkcsQbr8IINWkc9zJNi6Q=; b=terQTNcBYfG0yUBFbd0bMrqAXDUQgtb+s3ADsND79/IXcyIx0+79t0lPvdhFvyS3nN rV45qbzD4+74YDTi0HVTrpvsuP/KV3YYRwWCkBjACqViczLeFLStsNiHN2j2L27VGfuN y4gWtd/OKcCfDpwCRF0jsttHbLk23mITqyRZ0FJJ9sPpginhjLcUpsuz68nmIxi9Kkcp HBGB1ChY1qi6DolKyFJiSIiKehJ6Kz4FYbVITzxmK/Q4JcvbZZ/VGRDXGS+1zivHYOjL /A8b3TYr4+LvGBFmyO8z1f07basZy0LZ8gmPVu8seojxo3oeNuWznn8hW1YZQDQ/YryW XxIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=gK9cFScmj/J5tmGrzYH71tOkcsQbr8IINWkc9zJNi6Q=; b=Fpn+ZfCMeZV+l41emMDlTSG0K97DFkbyMy6+sX4PYIvYRGk4YfXR+px/wa5K0yl3Ti arc7NK5V56N5sFIAT99dT6dKHPX+56AA4Wm2728YzaTSBVUrDH5YnzEXAXDGV4EPnYHf ZbPHqDNmxEusXPAQCiFdw+kKlHYoyEJIprVl4i7OhMFbL2P0d9xggeftN7DQCrKIMXML oJgzSjVKYAwvmYWtJ9gAsHXaTpTGnyGPgHp3EbZzwwYNbNQmZEujAhDSzDUGkpx6csPk FvVigv8xbvy3pStoIgbD8uajIB1hcC7znorFMZK1lo17NvWVIVH58Mg5Df3OLoI3BmPr 1lpQ== X-Gm-Message-State: AOAM532FBaSEe5jmOQM+bniaH7Df8TsfA1KSnWwB5O/qTQ7d6YGXYggu 8vZsTELQqxJK20426x8bxpj6HTdvzys= X-Google-Smtp-Source: ABdhPJwd0GvcpoigIk8cJ92WPQYj7tZPs3KJRA5cDP9UYka0VK3+o7hgPQOSKhY9f3NOjB7wJ88lEg== X-Received: by 2002:a1c:a985:: with SMTP id s127mr661555wme.158.1614116287715; Tue, 23 Feb 2021 13:38:07 -0800 (PST) Received: from freegnu (82-64-129-7.subs.proxad.net. [82.64.129.7]) by smtp.gmail.com with ESMTPSA id i8sm17056wry.90.2021.02.23.13.38.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Feb 2021 13:38:07 -0800 (PST) From: Jeremie Juste To: Greg Minshall Subject: Re: org-in-org References: <819173.1614090273@apollo2.minshall.org> Date: Tue, 23 Feb 2021 22:38:06 +0100 In-Reply-To: <819173.1614090273@apollo2.minshall.org> (Greg Minshall's message of "Tue, 23 Feb 2021 17:24:33 +0300") Message-ID: <87lfbe79dt.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=jeremiejuste@gmail.com; helo=mail-wm1-x332.google.com 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, 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" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.07 Authentication-Results: aspmx2.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=terQTNcB; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx2.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: AD23A1F6AB X-Spam-Score: -3.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2oa8Wcm5bEJj Hello Greg, Many thanks for the effort.=20 A possible solution might be this one=20 #+NAME: readdata-code #+BEGIN_SRC org ,#+NAME: readdata-code ,#+BEGIN_SRC R :results value silent read.data("datafile1.csv",sep=3D",",header=3DT)->mydata1 ,#+END_SRC #+END_SRC credit goes to https://raw.githubusercontent.com/vikasrawal/orgpaper/master= /orgpapers.org Best regards, Jeremie On Tuesday, 23 Feb 2021 at 17:24, Greg Minshall wrote: > i have a question about org-in-org source blocks. i volunteered to help > in an effort to provide a tutorial of using the ESS (Emacs Speaks > Statistics) package for R, in particular, from org mode. > > i'd like to write my contribution as a .org file. i'd like to include > fragments of org code, including source blocks (in R). and, i'd like to > show various result types. so, i'd like to be able to have the > #+RESULTS show up in the org-in-org source block as exported inside the > containing .org file. > > and, i'd like to trigger all this from a makefile, using some emacs > batch script to export the containing .org file into a .html or .pdf > file. > > (i *think*) what i would like to end up with is what it would like if i > had manually opened the org-in-org source blocks (C-c=E2=80=8C'), then we= nt to > each (or, possibly, selected, i guess) source blocks inside *that* > (org-in-org) source block, and executed each, producing a #+RESULTS > block for each, then closed the org-in-org source block (C-c=E2=80=8C', a= gain), > and then exported the containing .org file. > > is this possible? any ideas? > > cheers, Greg > --=20 Jeremie Juste