output |
---|
github_document |
writeMDX
writes Rmarkdown (.Rmd
) files to
MDX. Nice and simple 😎
You can install it with
remotes::install_github("RobertMyles/writeMDX")
.
With a file named “heyho.Rmd”:
writeMDX("heyho.Rmd")
I love React, and I just rebuilt my
website using
gatsby.js, so now I want all the ease and
power of MDX. The only missing piece of the puzzle was doing some stuff
in R, and then writing it out to an .mdx
file that I can use to add in
all the other stuff I want, like D3 graphs. R + React + Markdown =
:purple_heart:
This won’t go on CRAN, since it’s mainly rmarkdown package functions with an added format, which you can do yourself quite easily.