create account

[R: New Features on mindr] Supports the new format of FreeMind. Displays mind maps directly. Supports bookdown projects. by dapeng

View this thread on: hive.blogpeakd.comecency.com
· @dapeng · (edited)
$94.04
[R: New Features on mindr] Supports the new format of FreeMind. Displays mind maps directly. Supports bookdown projects.
#### 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 Project] mindr: an R package that creates a markdown post out of a mind map](https://steemit.com/utopian-io/@dapeng/mindr-an-r-package-that-creates-a-markdown-post-out-of-a-mind-map)
- [[New Features] mindr supports tibble dataframes!](https://steemit.com/utopian-io/@dapeng/new-features-mindr-supports-tibble-dataframes)

### New Features

In the recent months, I have received many kind feedbacks and helpful suggestions from mindr users. I did not improve or enhance mindr until the latest week. Now the new version 1.1.5 brings more exciting features.

- Create mind maps out of a directory.

  I added a new function `dir2()` to create a mind map out of a directory in the user's computer.

  Commit: [compitable with both the old and new versions of mindmaps. new function](https://github.com/pzhaonet/mindr/commit/0109d784422ea125b730371e689c90b26657b6a2)

- Support the new format of FreeMind mind maps.

  The new format of FreeMind mind maps uses `/>`rather than `</node>` as the ending of a node. I added the compatibility for both the old and the new.

  Commit: [compitable with both the old and new versions of mindmaps](https://github.com/pzhaonet/mindr/commit/0109d784422ea125b730371e689c90b26657b6a2) 

- Display FreeMind mind maps directly, as a reply to [askhari139's comment](https://github.com/pzhaonet/mindr/issues/8#issue-299619384). 

  I added a new parameter to the function `markmap(input = c('.md', '.mm'))`. Now it can display not only markdown files, but also FreeMind mind maps in a markmap widge.

  commit: [display .mm files directly](https://github.com/pzhaonet/mindr/commit/b1e1f9159f4b75fa695f9791ff447d3493b51d06)

- Filter for file types were added, as a reply to [wuffi's comment](https://github.com/pzhaonet/mindr/issues/12#issue-338185363). Support hyperlinks in FreeMind mind maps, as a reply to [instantkaffee's comment](https://github.com/pzhaonet/mindr/issues/9#issue-314193635).

  I added a new paramter  `pattern` to the funcrtion `md2mm`, by which the uses can decide what files to import. By default, the '.md' and '.Rmd' files are imported.

  Commit: [file filter](https://github.com/pzhaonet/mindr/commit/550e9a0801451cb6077ade5893299e3e252532ce)

- Enhance the support for bookdown projects, according to [Yihui's suggestions](https://community.rstudio.com/t/bookdown-contest-submission-mindr-convert-a-bookdown-project-into-a-mind-map-and-vice-versa/15121/2?u=dapeng).

  I added a parameter 'bookdown_style' to the function `md2mm`. If the user choose the bookdown style, then mindr will put 'index.Rmd' before all the rest files, and lower the levels of the chapter headings if there is `# (Part)`, `# (APPENDIX)` or `# Reference`. The identification of chapter headings were improved as well.

  Commit: [enchance the support for bookdown project](https://github.com/pzhaonet/mindr/commit/8f8a639d2f3622610e930603f262b0678ae5ae12)

  A mind map produced from the bookdown project *[the Blogdown Book](https://bookdown.org/yihui/blogdown/)* is as follows.

  [![](https://discourse-cdn-sjc1.com/business4/uploads/tidyverse/original/2X/9/9165086d21772e9ae06d405cef10e26e709e0fc2.png)](https://discourse-cdn-sjc1.com/business4/uploads/tidyverse/original/2X/9/9165086d21772e9ae06d405cef10e26e709e0fc2.png)

- Some minor bugs were fixed, partly according to [jooyoungseo's comment](https://github.com/pzhaonet/mindr/issues/10#issue-317041556)

  Commits: 

  - ['invalid URLs' fixed](https://github.com/pzhaonet/mindr/commit/9ee25e627ab6127d146ae31be9a63fbf8909999d)
  - [users can specify the root of a mind map by markup()](https://github.com/pzhaonet/mindr/commit/1504accd874c48d8ad719a8be9347325604954b5)

#### GitHub Account
https://github.com/pzhaonet
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 55 others
properties (23)
authordapeng
permlinkmindr-bookdown
categoryutopian-io
json_metadata{"tags":["utopian-io","development","r","markdown","mindmap"],"image":["https://discourse-cdn-sjc1.com/business4/uploads/tidyverse/original/2X/9/9165086d21772e9ae06d405cef10e26e709e0fc2.png"],"links":["https://github.com/pzhaonet/mindr","https://steemit.com/utopian-io/@dapeng/mindr-an-r-package-that-creates-a-markdown-post-out-of-a-mind-map","https://steemit.com/utopian-io/@dapeng/new-features-mindr-supports-tibble-dataframes","https://github.com/pzhaonet/mindr/commit/0109d784422ea125b730371e689c90b26657b6a2","https://github.com/pzhaonet/mindr/issues/8#issue-299619384","https://github.com/pzhaonet/mindr/commit/b1e1f9159f4b75fa695f9791ff447d3493b51d06","https://github.com/pzhaonet/mindr/issues/12#issue-338185363","https://github.com/pzhaonet/mindr/issues/9#issue-314193635","https://github.com/pzhaonet/mindr/commit/550e9a0801451cb6077ade5893299e3e252532ce","https://community.rstudio.com/t/bookdown-contest-submission-mindr-convert-a-bookdown-project-into-a-mind-map-and-vice-versa/15121/2?u=dapeng","https://github.com/pzhaonet/mindr/commit/8f8a639d2f3622610e930603f262b0678ae5ae12","https://bookdown.org/yihui/blogdown/","https://discourse-cdn-sjc1.com/business4/uploads/tidyverse/original/2X/9/9165086d21772e9ae06d405cef10e26e709e0fc2.png","https://github.com/pzhaonet/mindr/issues/10#issue-317041556","https://github.com/pzhaonet/mindr/commit/9ee25e627ab6127d146ae31be9a63fbf8909999d","https://github.com/pzhaonet/mindr/commit/1504accd874c48d8ad719a8be9347325604954b5","https://github.com/pzhaonet"],"app":"steemit/0.1","format":"markdown"}
created2018-10-11 08:29:24
last_update2018-10-11 08:29:45
depth0
children7
last_payout2018-10-18 08:29:24
cashout_time1969-12-31 23:59:59
total_payout_value70.810 HBD
curator_payout_value23.233 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,081
author_reputation64,632,001,917,831
root_title"[R: New Features on mindr] Supports the new format of FreeMind. Displays mind maps directly. Supports bookdown projects."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id73,059,799
net_rshares66,499,542,204,058
author_curate_reward""
vote details (119)
@amosbastian ·
$9.82
Thanks for the contribution, @dapeng! It's great to see you have been responding to the feedback and suggestions you received by actually implementing the features - I'm sure the users really appreciate that! 

I was wondering if there is a reason you removed your project's license in [this commit](https://github.com/pzhaonet/mindr/commit/b1e1f9159f4b75fa695f9791ff447d3493b51d06)? It now doesn't contain anything other than

```
YEAR: 2018
COPYRIGHT HOLDER: Peng Zhao <pzhao@pzhao.net>
```
which means that it technically isn't open source anymore (I could be wrong). I would suggest you add revert this  or add another open source license to your project.

---

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/1222221).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , , ,
properties (23)
authoramosbastian
permlinkre-dapeng-mindr-bookdown-20181011t111602512z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["dapeng"],"links":["https://github.com/pzhaonet/mindr/commit/b1e1f9159f4b75fa695f9791ff447d3493b51d06","https://join.utopian.io/guidelines","https://review.utopian.io/result/3/1222221","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-10-11 11:16:03
last_update2018-10-11 11:16:03
depth1
children3
last_payout2018-10-18 11:16:03
cashout_time1969-12-31 23:59:59
total_payout_value7.419 HBD
curator_payout_value2.402 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,155
author_reputation174,473,586,900,705
root_title"[R: New Features on mindr] Supports the new format of FreeMind. Displays mind maps directly. Supports bookdown projects."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id73,067,239
net_rshares6,991,331,249,553
author_curate_reward""
vote details (12)
@dapeng · (edited)
Hi @amosbastian! Thank you for your fast response. As the package mindr has been submitted to CRAN, it has to fulfill the CRAN requirements, including the [CRAN rule of license](https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Licensing). It means that I have to clarify the license in the [DESCRIPTION file like](https://github.com/pzhaonet/mindr/blame/master/DESCRIPTION#L11) `License: MIT + file LICENSE` and the text you mentioned in 'LICENSE'. CRAN rejects those submissions without these texts. This CRAN rule was [criticized on stackoverflow](https://stackoverflow.com/questions/43550479/how-to-satisfy-both-cran-and-github-license-file-naming-requirements). 

I have just made a [new commit](https://github.com/pzhaonet/mindr/commit/cb191d85db59c94b5b483d0f5baa4221e7256bee) and added a LICENCE file for Github, and hided the CRAN LICENSE file. We will see what CRAN's response will be.

Thank you for your careful review and kind suggestions!
properties (22)
authordapeng
permlinkre-amosbastian-re-dapeng-mindr-bookdown-20181011t115834231z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["amosbastian"],"links":["https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Licensing","https://github.com/pzhaonet/mindr/blame/master/DESCRIPTION#L11","https://stackoverflow.com/questions/43550479/how-to-satisfy-both-cran-and-github-license-file-naming-requirements","https://github.com/pzhaonet/mindr/commit/cb191d85db59c94b5b483d0f5baa4221e7256bee"],"app":"steemit/0.1"}
created2018-10-11 11:58:39
last_update2018-10-11 12:23:57
depth2
children1
last_payout2018-10-18 11:58:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length963
author_reputation64,632,001,917,831
root_title"[R: New Features on mindr] Supports the new format of FreeMind. Displays mind maps directly. Supports bookdown projects."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id73,069,273
net_rshares0
@amosbastian ·
I see. Good luck with CRAN's response!
properties (22)
authoramosbastian
permlinkre-dapeng-re-amosbastian-re-dapeng-mindr-bookdown-20181011t121346972z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-10-11 12:13:48
last_update2018-10-11 12:13:48
depth3
children0
last_payout2018-10-18 12:13:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length38
author_reputation174,473,586,900,705
root_title"[R: New Features on mindr] Supports the new format of FreeMind. Displays mind maps directly. Supports bookdown projects."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id73,070,114
net_rshares0
@utopian-io ·
Thank you for your review, @amosbastian!

So far this week you've reviewed 4 contributions. Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-dapeng-mindr-bookdown-20181011t111602512z-20181016t073040z
categoryutopian-io
json_metadata"{"app": "beem/0.20.1"}"
created2018-10-16 07:30:42
last_update2018-10-16 07:30:42
depth2
children0
last_payout2018-10-23 07:30:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length114
author_reputation152,955,367,999,756
root_title"[R: New Features on mindr] Supports the new format of FreeMind. Displays mind maps directly. Supports bookdown projects."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id73,394,299
net_rshares0
@steem-ua ·
#### Hi @dapeng!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-mindr-bookdown-20181011t111729z
categoryutopian-io
json_metadata"{"app": "beem/0.20.7"}"
created2018-10-11 11:17:30
last_update2018-10-11 11:17:30
depth1
children0
last_payout2018-10-18 11:17:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length285
author_reputation23,214,230,978,060
root_title"[R: New Features on mindr] Supports the new format of FreeMind. Displays mind maps directly. Supports bookdown projects."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id73,067,313
net_rshares0
@steemitboard ·
Congratulations @dapeng! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/commented.png)](http://steemitboard.com/@dapeng) Award for the number of comments received

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Do not miss the last post from @steemitboard:**
<table><tr><td><a href="https://steemit.com/spanish/@steemitboard/presentamos-el-ranking-de-steemitboard"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmfRVpHQhLDhnjDtqck8GPv9NPvNKPfMsDaAFDE1D9Er2Z/header_ranking.png"></a></td><td><a href="https://steemit.com/spanish/@steemitboard/presentamos-el-ranking-de-steemitboard">Presentamos el Ranking de SteemitBoard</a></td></tr></table>

> Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-dapeng-20181011t091852000z
categoryutopian-io
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-10-11 09:18:51
last_update2018-10-11 09:18:51
depth1
children0
last_payout2018-10-18 09:18:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,147
author_reputation38,975,615,169,260
root_title"[R: New Features on mindr] Supports the new format of FreeMind. Displays mind maps directly. Supports bookdown projects."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id73,061,950
net_rshares0
@utopian-io ·
Hey, @dapeng!

**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Get higher incentives and support Utopian.io!**
 Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-mindr-bookdown-20181017t063013z
categoryutopian-io
json_metadata"{"app": "beem/0.20.1"}"
created2018-10-17 06:30:15
last_update2018-10-17 06:30:15
depth1
children0
last_payout2018-10-24 06:30:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length588
author_reputation152,955,367,999,756
root_title"[R: New Features on mindr] Supports the new format of FreeMind. Displays mind maps directly. Supports bookdown projects."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id73,460,226
net_rshares0