|
From: | Charles C. Berry |
Subject: | Re: [O] convert rmarkdown (rmd) files to orgmode? |
Date: | Wed, 20 Jul 2016 10:42:15 -0700 |
User-agent: | Alpine 2.20 (OSX 67 2015-01-07) |
On Wed, 20 Jul 2016, Xebar Saram wrote:
thx for the tips! when i try to run the source block : #+BEGIN_SRC emacs-lisp :results silent (replace-regexp "^=[{]r \\([^}]*\\)[}]\\(.*\\)=$" "#+name: \\1 ,#+begin_src R \\2 ,#+end_src") #+END_SRC i just get a nil in the message area. what am i missing?
Nothing! The `:results silent' should suppress any output.Anyway, what you should see is that the code chunks that pandoc placed inside equal signs like
: ={r my-name} code = are now in src blocks. I think you need to put the src block at the top or add a : (goto-char (point-min)) as its first line to be sure it converts all the code chunks. Chuck
[Prev in Thread] | Current Thread | [Next in Thread] |