From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamie Forth Subject: Re: Problem with including file Date: Thu, 02 May 2019 12:23:05 +0100 Message-ID: <87lfzphzhi.fsf@lutyens> References: <02c901d500a4$61ee4760$25cad620$@gmail.com> <87v9ytb6be.fsf@nicolasgoaziou.fr> <037201d500c3$761ecb50$625c61f0$@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hM9oB-0004yP-Sl for emacs-orgmode@gnu.org; Thu, 02 May 2019 07:23:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hM9oA-0000pM-T5 for emacs-orgmode@gnu.org; Thu, 02 May 2019 07:23:23 -0400 Received: from [195.159.176.226] (port=56656 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hM9oA-0000oJ-MO for emacs-orgmode@gnu.org; Thu, 02 May 2019 07:23:22 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hM9o7-000Uih-8x for emacs-orgmode@gnu.org; Thu, 02 May 2019 13:23:19 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi Andreas, "Andreas Kiermeier" writes: > The reason I did tried to do it this way was because it's simpler than > having to say :export results for every source block. > But, it a second call to > > #+PROPERTY: header-args+ :exports code > Just before the #+INCLUDE gets everything working perfectly. A second #+PROPERTY keyword will just append an additional file property (the second one shadowing the first). Setting the header-args in property drawers would do what you want. #+PROPERTY: header-args:R :session *R* :cache no #+PROPERTY: header-args+ :results output #+PROPERTY: header-args+ :eval never-export #+PROPERTY: header-args+ :tangle yes * Intro :PROPERTIES: :header-args: :exports results :END: * Data Analysis Source Code :PROPERTIES: :header-args: :exports code :END: https://orgmode.org/manual/Using-Header-Arguments.html#Header-arguments-in-Org-mode-properties -- Jamie