From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Xebar Saram <zeltakc@gmail.com>
Cc: org mode <emacs-orgmode@gnu.org>, Philip Hudson <phil.hudson@iname.com>
Subject: Re: convert rmarkdown (rmd) files to orgmode?
Date: Wed, 20 Jul 2016 10:42:15 -0700 [thread overview]
Message-ID: <alpine.OSX.2.20.1607201037280.624@charles-berrys-macbook.local> (raw)
In-Reply-To: <CAOQHXPok-uQWZwo_iU5fPchsrrrjo8nXtsv2wQ1-8fepZFV4nw@mail.gmail.com>
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
next prev parent reply other threads:[~2016-07-20 17:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-20 4:28 convert rmarkdown (rmd) files to orgmode? Xebar Saram
[not found] ` <CAJ1MqVF4Cq3ogH34P6AtSf0-ZX7ic=tApuX-ad=+14pLF7p1Aw@mail.gmail.com>
2016-07-20 11:15 ` Xebar Saram
2016-07-20 17:20 ` Charles C. Berry
2016-07-20 17:29 ` Xebar Saram
2016-07-20 17:42 ` Charles C. Berry [this message]
2016-07-20 18:00 ` Xebar Saram
2016-07-21 6:48 ` Xebar Saram
2016-07-21 16:27 ` Charles C. Berry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.OSX.2.20.1607201037280.624@charles-berrys-macbook.local \
--to=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
--cc=phil.hudson@iname.com \
--cc=zeltakc@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.