From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: running a source code by name Date: Mon, 28 May 2018 18:58:54 -0400 Message-ID: <87a7sje6a9.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNR6f-0003VI-D7 for emacs-orgmode@gnu.org; Mon, 28 May 2018 18:59:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNR6a-0004Et-KI for emacs-orgmode@gnu.org; Mon, 28 May 2018 18:59:13 -0400 Received: from [195.159.176.226] (port=60463 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNR6a-0004Ck-Cq for emacs-orgmode@gnu.org; Mon, 28 May 2018 18:59:08 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fNR4N-0002K0-QE for emacs-orgmode@gnu.org; Tue, 29 May 2018 00:56:51 +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 "Julian M. Burgos" writes: > Dear list, > > I have an org file with an R source code block. I want to have a second > code block with an elisp call to run that first code. Something like this > > > #+begin_src emacs-lisp :results silent :tangle no > > ... Some elisp code to run the "myRcode" block. (org-sbe myRcode) Untested. > > #+end_src > > #+NAME: myRcode > #+beg in_src R :results silent :tangle no > > ... My R code here > > #+end_src > > What would be the best way to do it? > > Many thanks, > > Julian > > > -- > Julian Mariano Burgos, PhD > Hafrannsóknastofnun, rannsókna- og ráðgjafarstofnun hafs og vatna/ > Marine and Freshwater Research Institute > Botnsjávarsviðs / Demersal Division > Skúlagata 4, 121 Reykjavík, Iceland > Sími/Telephone : +354-5752037 > Bréfsími/Telefax: +354-5752001 > Netfang/Email: julian.burgos@hafogvatn.is > > -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler