Convert your work from RStudio to generate blog posts
Many of the people at CorrelAid come from a R background. Even you (the reader) could be more familiar to the R world than to the Python one.
To help you all to easily display your work on the Correlaid blog, here we will introduce a couple of methods to convert R Mardown files into Jupyter Notebook ones.
Jupytext, open a terminal (Unix) or a command line window (Windows) and run:
pip install jupytext --upgrade
If you use
conda instead, run:
conda install jupytext -c conda-forge
Once the package is installed, using the same Python distro that is used for your Jupyter Notebook/JupyerLab, you can convert a R Markdown file by following these steps:
jupytext --to notebook script.Rmdto have a
Please refer to the project page for further references.
notedown, open a terminal (Unix) or a command window (Windows) and run:
pip install notedown
Once the package is installed, make sure that you have
knitr instaled as well with your
In a terminal (Unix) or command window (Windows) run:
notedown script.Rmd --knit > script.ipynb
Before sharing your content, make sure that the conversion is correct by opening the newly created notebook via Jupyter Notebook/JupyterLab.
Please refer tot he project page for further references.