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
Note that this is not the same as obtaining a
To clarify the workflow as requested from the comments. The situation is as follows:
- I have a set of
orgmodefiles which were used to analyze data (via
- Typically I would export these to
htmloutput downstream (with
ox-hugo, e.g. this file) and
TeXwhich 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
- Tangle (??) to an
.Rmdso 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.