emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] running a source code by name


From: Nick Dokos
Subject: Re: [O] running a source code by name
Date: Mon, 28 May 2018 18:58:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

"Julian M. Burgos" <address@hidden> 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: address@hidden
>
>

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler




reply via email to

[Prev in Thread] Current Thread [Next in Thread]