From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Creating new org headers from code blocks Date: Fri, 19 Sep 2014 12:04:38 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUv3v-0007XC-0T for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 06:05:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUv3n-0004y0-Hf for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 06:05:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:41313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUv3n-0004pR-BW for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 06:05:03 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XUv3g-0004tV-Vm for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 12:04:57 +0200 Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Sep 2014 12:04:56 +0200 Received: from Rainer by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Sep 2014 12:04:56 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi I have some R code which generates several graphics. I would now like to generate in R text which is then interpreted by org, upon export, as normal org code. Furthermore, I would like to create new org headers from the R code. Imagine I have the R code block below. Executed, I get the results below: =2D-8<---------------cut here---------------start------------->8--- * Some code block #+begin_src R :results raw :wrap :exports both c("** New header", "[[./graph1.pdf]]", "", "** and second header", "and som= e text" ) #+end_src #+RESULTS: #+BEGIN_RESULTS ,** New header [[./graph1.pdf]] ,** and second header and some text #+END_RESULTS =2D-8<---------------cut here---------------end--------------->8--- I can leave the :wrap, but then the results are not overwritten, but appended - otherwise it works as expected. How can I achieve that I get=20 ,---- | ** New header | [[./graph1.pdf]] |=20 | ** and second header | and some text `---- in the org file, but also that the result gets overwritten upon repeated execution? Thanks, Rainer =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJUG/+6AAoJENvXNx4PUvmCtZEH/0vbmgwzCkRRUnkb7rl1LBfR Fe/Za8PgAnKTQv9V+F2FbB5z4YrG6AgvRKw4R07KDupNO3mPXiISeyZeWnupg1hD Hc1WCfoRLMnal/j3cfkoGppBSDhA2S/3gmdoFJnbz/R4ZpnUOhi3y5GGhdO9lvaP BbxBBf+3RLdhHNtOJGvBkmBXKKTGEgvvqK7USRXjTXhzQA83MGZSmQgKIOgQxuKa /YnY8RpQl6nyXfZ1LTfaiXTbrNp8LIPqioabS4a580QZtblMn5UpqL6B7UF9cbg9 djuzFlQiveIJwHSjkMnI7sFBpn6/VdA90RjHv4i6UxyTl7i7l34nQ4deI/Svfpo= =YxP9 -----END PGP SIGNATURE----- --=-=-=--