[R: New Features on mindr] Support LaTeX Equations. Conversion between .R scripts and .Rmd documents
Repo
https://github.com/pzhaonet/mindr
Brief Intro and curriculum
'mindr' is an R package that can convert a markdown file or multiple markdown files, such as steem posts, into one mindmap. mindr can also convert a mindmap into a markdown file, which can be a good start of your post. A brief introduction can be found in one of my previous posts:
New Features
The new version 1.1.7 brings more exciting features.
Keep the LaTeX equations when converting markdown files into mindmaps, as a reply to specter119's comment.
I used some regular expressions to extract the LaTeX codes from the markdown files, and changed them into extended mindmap syntax supported by Docear.
Figure 1. A mind map with LaTeX equations converted by mindr from a markdown file
Convert .R scripts into R markdown (.Rmd) or markdown (.md) documents, and vice versa, so that users can convert .R scripts into mind maps by using mindr.
I added two functions to convert the following elements in .R scripts into R markdown documents.
- code (.R) ---> code block (.Rmd, .md)
- comments beginning with
#---> text body (.Rmd, .md) - comments beginning with markdown headings ---> headings (.Rmd, .md)
Figure 2. Conversion between a .R script and a .Rmd file
GitHub Account
Leave [R: New Features on mindr] Support LaTeX Equations. Conversion between .R scripts and .Rmd documents to:
Read more #utopian-io posts
Best Posts From dapeng
We have not curated any of dapeng's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From dapeng
- 老年人技术故障重复发帖
- 卷铺盖走人
- 无题
- Tutorial for pinyin: Installation and Quick Start
- 声律启蒙第一周
- 《Steem 指南》快讯:域名 steemh.org 停用
- [New R Package] sinx: R fortunes in Chinese
- [New features on R rosr] A shiny GUI and RStudio addin for choosing and creating sub-projects
- 68
- [New R Package] rosr: Create academic R markdown projects for open science and reproducible research
- [R: New Features on beginr] Automatically generate a self-contained package
- [R: New Features on mindr] v.1.2.0 released: universal function and directory tree
- [New R Package] rmd: Easily Install, Load and Explore the R Markdown Family
- 辞赋悬日月,台榭空山丘
- 将幻灯忍者 xaringan 幻灯片发布到网上的方法
- [R: New Features on mindr] New strategy of writing R comments. Conversion between .R scripts and .mm mind maps
- 用 markdown 的逻辑写 R 脚本注释(2)
- 金庸早已远逝,我辈江湖犹存
- 用 markdown 的逻辑写 R 脚本注释
- [R: New Features on mindr] Support LaTeX Equations. Conversion between .R scripts and .Rmd documents