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

in #utopian-io3 years ago (edited)

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

Sort:  

Thanks for the contribution, @dapeng! The image you added at the bottom of your post does a great job showing the relationship between the features you implemented in this contribution - very cool! Maybe also showing an example of how you'd use the code in the post would've been nice as well, but I guess it's already straightforward enough.

Any plans for future features?


Your contribution has been evaluated according to Utopian policies and 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.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Hi @amosbastian. Thank you for your review and your kind words! If users require, I will write a tutorial in the future, but I think it is straightfoward enough, as you said. Yes, I do have plans for future features. One of them will be ... well, I would keep it as a secret, so that I might give users some surprise!

Thank you for your review, @amosbastian! Keep up the good work!

Hello! Your post has been resteemed and upvoted by @ilovecoding because we love coding! Keep up good work! Consider upvoting this comment to support the @ilovecoding and increase your future rewards! ^_^ Steem On!

Reply !stop to disable the comment. Thanks!

Congratulations @dapeng! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 5500 comments. Your next target is to reach 6000 comments.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do not miss the last post from @steemitboard:

Meet the Steemians Contest - Intermediate results

Support SteemitBoard's project! Vote for its witness and get one more award!

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

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 or Steeditor).

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

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.65
TRX 0.10
JST 0.075
BTC 56959.94
ETH 4552.05
BNB 624.54
SBD 7.25