[R: New Features on mindr] New strategy of writing R comments. Conversion between .R scripts and .mm mind maps
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:
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.
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::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.