mindr: an R package that creates a markdown post out of a mind map - 将帖子转成思维导图steemCreated with Sketch.

in utopian-io •  2 years ago  (edited)

This post was written bilingually, in English and Chinese.




A mind map is a diagram used to visually organize information. Markdown is a markup language widely used for writing, for example, posts on steem and Utopian.io.

This post is to introduce an open-source package called mindr I have been developing with R language for creating mindmaps from markdown posts, or vice versa.


If you are a mindmap fan, you might start an Utopian.io post from a mindmap like this:

Submit to Utopian.jpg

Yes, this is the structure of this post. Maybe it could be a template for Utopian.io.

The mindmap helps organize your idea. Now you start writing your post. Isn't boring if you have to type the same words in the mindmap again?

On the other way around, if you have already written a post, wouldn't it be amazing if you present the outline of the post in a nice mindmap?


With R mindr package, these tasks can be done with one single command.

Markdown to Mindmap

mindr can convert a markdown file or multiple markdown files, such as steem posts, into one mindmap, which could be opened and edited with common mindmap software like Freemind and Xmind.

Mindmap to Markdown

mindr can also convert a mindmap into a markdown file, which can be a good start of your post.


If you don't like mindmaps, you can use mindr just to extract the outline from your markdown file(s).

Quick Start

Installation of R

Download R and install it.

Installation of mindr

In R environment, run the following codes to install mindr.

# stable version:
# or development version:


As an example from markdown to mindmap, run:


then you will get a demo mind map file mindr.mm in the working directory (getwd()). Open it with any mind-map (brainstorm) software, and you will get a mind map.

As an example from mindmap, run:


then you will get a demo markdown file mindr.md in the working directory (getwd()).

Days ago I introduced the R package bookdownplus. From a book by bookdownplus or bookdown, you can simply get a mindmap with mindr. For example, if you throw the markdown files of the repo rstudio/bookdown into a folder and run mindr, you will get a mindmap like this:

Link to the Repo


Proof of Work

The following images are screenshots showing I am the author 'pzhaonet' of mindr.




All I wanted to say is: mindr is a useful package for steemians who take writing serious.

本文介绍的是我开发的一个开源免费的 R 扩展包,唤作 mindr,用来在思维导图和 markdown 之间转换。





只需先安装 R 语言环境,再按上文介绍的代码安装 mindr 扩展包,就可以得到上文展示的示例。

来试一下 mindr 吧!

Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hey @dapeng I am @utopian-io. I have just upvoted you!


  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!


Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Thank you!



你好哟!cn区点赞机器人 @cnbuddy 很开心你能成为cn区的一员。 @cnbuddy 旨在助力cn区快速发展,更多cn区动态,请查看我的主页。欢迎关注我们的大股东 @skenan,并注册使用由其开发的 CNsteem.com。假如我的留言打扰到你,请回复“取消”。

Come and learn what activities AI likes :)

Your contribution cannot be approved yet because it does not have proof of work. See the Utopian Rules. Please edit your contribution and add proof (links, screenshots, commits, etc) of your work, to reapply for approval.

You may edit your post here, as shown below:

You can contact us on Discord.

I have added a screenshot. Please have a look. Thank you!

I need the proof of your work or a proof that your the owner of this project.

  ·  2 years ago (edited)

Thank you. I have added one more screenshot of the connection to my github repos. Would that be sufficient?

Yes, Approved.


是 markdown 的好伴侣

Wonderful idea!




Thank you for the contribution. It has been approved.

You can contact us on Discord.

Thank you very much!

@dapeng 赞一个