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.

本文用英文和中文写作,中文在后半部分。

Introduction

Background

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.

Motivation

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?

Features

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.

Outline

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:
install.packages("mindr")
# or development version:
devtools::install_github("pzhaonet/mindr")

Examples

As an example from markdown to mindmap, run:

library('mindr')
example(md2mm)

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:

example(mm2md)

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

https://github.com/pzhaonet/mindr

Proof of Work

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

mindr.jpg

image.png

Conclusion

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


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

如果你是个思维导图粉丝,写帖子之前,可以用思维导图来组织一下思路,像上面第一幅图那样。

思路清晰了,现在开始按思路写文章。但是,你难道还想把图里的文字再重复敲一遍吗?

反过来也是。当你已经写好了帖子,如果能一下就把帖子转成一个思维导图,向别人展示帖子的结构和思路,岂不是一件美事?

mindr,助你轻松实现这些梦想。

只需先安装 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!

Achievements

  • 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!

mooncryption-utopian-witness-gif

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.
[utopian-moderator]

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!

Thanks!

这个世界是我们的世界的,但终究是你们技术大拿的世界👍👍

是他们技术大拿的……

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thank you very much!

@dapeng 赞一个

谢谢大伟哥!

不明觉厉!看样子是个不错的工具,收藏了。

用着的时候再说吧