Re: [O] running a source code by name

2018-05-30 Thread Berry, Charles
> On May 29, 2018, at 11:59 PM, Julian M. Burgos > wrote: > > I am building an org template to create html presentations using the R > package xaringan. In my case each slide is a markdown source block. > The elisp block tangles everything into a Rmd file, and the R block runs > rmarkdown::r

Re: [O] running a source code by name

2018-05-30 Thread Julian M. Burgos
Thanks guys. A combination of org-babel-goto-named-src-block and org-babel-execute-src-block did the trick. I am building an org template to create html presentations using the R package xaringan. In my case each slide is a markdown source block. The elisp block tangles everything into a Rmd fil

Re: [O] running a source code by name

2018-05-28 Thread Nick Dokos
"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" bl

Re: [O] running a source code by name

2018-05-28 Thread Berry, Charles
OK, I have to note that this will also do the job that the OP requested: #+begin_src emacs-lisp :results silent :var result=myRcode #+end_src although it seems a little strange to write an empty src block for its side effects. I suppose I should have suggested this in the first place: #+begin

Re: [O] running a source code by name

2018-05-28 Thread Berry, Charles
> On May 28, 2018, at 7:35 AM, Eric S Fraga wrote: > > On Monday, 28 May 2018 at 11:13, Julian M. Burgos wrote: >> 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 >> >> >>

Re: [O] running a source code by name

2018-05-28 Thread Eric S Fraga
On Monday, 28 May 2018 at 11:13, Julian M. Burgos wrote: > 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

[O] running a source code by name

2018-05-28 Thread Julian M. Burgos
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. #+end_src #+NAME: myRcode #+beg in