dapeng avatar

[R: New Features on mindr] New strategy of writing R comments. Conversion between .R scripts and .mm mind maps

dapeng

Published: 17 Nov 2018 › Updated: 17 Nov 2018[R: New Features on mindr] New strategy of writing R comments. Conversion between .R scripts and .mm mind maps

[R: New Features on mindr] New strategy of writing R comments. Conversion between .R scripts and .mm mind maps

Repo

https://github.com/pzhaonet/mindr

Brief Intro and curriculum

'mindr' is an R package that can convert files between (R)markdown, R scripts, and mind maps. A brief introduction can be found in one of my previous posts:

New Features

Commit: convertion between .Rmd, .R. and .mm

The new version 1.1.8 mainly brings two exciting features.

  • yihui suggested that comments .R scripts can be written in a predefined strategy, which is very friendly. I improved this strategy with some modification, and added a new pair of functions, i.e. mindr::r2rmd() and mind::rmd2r(), which convert a file between .R script and .Rmd document smoothly. An example .R script is given here.

  • jiaming suggested that it would be perfect if the cycle of mindr can be complete. Hence, I added another new pair of functions, i.e. mindr::r2mm() and mindr::mm2r(), which convert a file between .R script and .mm mind maps.

    The complete cycle is illustrated in the following figure. Note that the dashed lines mean that it converts only the outline of the file.

GitHub Account

https://github.com/pzhaonet

Leave [R: New Features on mindr] New strategy of writing R comments. Conversion between .R scripts and .mm mind maps to:

Written by

悄然拂袖去 ,不携一片云。

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