As the title says, I have an orgmode
file I have been using with ess
and exporting to TeX
which has been going very well. However, I need to now export to html
for reasons out of my control, and was wondering if there is a clean way to obtain an Rmd
file from the org
file.
Note that this is not the same as obtaining a markdown
file.
To clarify the workflow as requested from the comments. The situation is as follows:
- I have a set of
orgmode
files which were used to analyze data (viaess
) - Typically I would export these to
hugo-markdown
forhtml
output downstream (withox-hugo
, e.g. this file) andpolymode-org-mode
forTeX
which works great
However, now I do need to edit the files in an .Rmd
setting (hiding code chunks and adding some more analysis). Currently one approach is to export to markdown
and then copy out what I need, but that seems inefficient. Similarly, the idea of manually messing with my html
files is also not appealing.
The current issue is that orgmode
export isn't clean enough to work as an Rmd
file (though the pandoc-orgmode
one is close).
The workflow I'm looking for is then:
- Load an R-session and work in an
orgmode
file - Tangle (??) to an
.Rmd
so other people can muck around
I'm not really interested in the inverse route, since I don't really mind working in Rmd
either (and I can connect to the same R-session), I'd just rather not hand-convert my existing files.
Note that in the current setup, the orgmode
file has a lot of extra LATEX_HEADER
options, since I was mostly just exporting to TeX
. These options also mess with the output when working with the standard exporters.
pandoc
and/orox-pandoc
? If so, what is it exactly that doesn't get translated correctly? – gregoryg Oct 21 '20 at 14:41