All Projects → pzhaonet → Mindr

pzhaonet / Mindr

Licence: mit
an R package which converts markdown files (.md, .Rmd) into mindmaps (brainstorms)

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Mindr

ntuthesis
台大碩博士論文模板 (R Package)
Stars: ✭ 14 (-97.27%)
Mutual labels:  rmarkdown, bookdown
Bookdown Crc
A minimal example of using bookdown to write a book for Chapman & Hall/CRC
Stars: ✭ 50 (-90.25%)
Mutual labels:  rmarkdown, bookdown
Bookdownplus
The easiest way to use R package bookdown for writing varied types of books and documents
Stars: ✭ 198 (-61.4%)
Mutual labels:  bookdown, cran
R4ds Exercise Solutions
Exercise solutions to "R for Data Science"
Stars: ✭ 226 (-55.95%)
Mutual labels:  rmarkdown, bookdown
heddlr
Bring a functional programming mindset to R Markdown document generation
Stars: ✭ 14 (-97.27%)
Mutual labels:  cran, rmarkdown
pinyin
an R package for converting Chineses characters into pinyin
Stars: ✭ 45 (-91.23%)
Mutual labels:  cran, bookdown
Bookdown
Authoring Books and Technical Documents with R Markdown
Stars: ✭ 2,768 (+439.57%)
Mutual labels:  rmarkdown, bookdown
rmd4sci
Rmarkdown for Scientists
Stars: ✭ 113 (-77.97%)
Mutual labels:  rmarkdown, bookdown
Rmdformats
HTML output formats for RMarkdown documents
Stars: ✭ 492 (-4.09%)
Mutual labels:  rmarkdown, cran
Jupyter Edu Book
Teaching and Learning with Jupyter
Stars: ✭ 325 (-36.65%)
Mutual labels:  bookdown
Officer
👮 officer: office documents from R
Stars: ✭ 405 (-21.05%)
Mutual labels:  cran
Minder
Mind-mapping application for Elementary OS
Stars: ✭ 306 (-40.35%)
Mutual labels:  mindmap
Blink Mind Desktop
Cross-platform full-featured mind mapping and outline app based on electron.
Stars: ✭ 352 (-31.38%)
Mutual labels:  mindmap
Fivethirtyeight
R package of data and code behind the stories and interactives at FiveThirtyEight
Stars: ✭ 422 (-17.74%)
Mutual labels:  cran
Rmarkdown Cookbook
R Markdown Cookbook. A range of tips and tricks to make better use of R Markdown.
Stars: ✭ 324 (-36.84%)
Mutual labels:  rmarkdown
Kableextra
Construct Complex Table with knitr::kable() + pipe.
Stars: ✭ 465 (-9.36%)
Mutual labels:  rmarkdown
Mindmap
思维导图Vue组件 - mindmap: vue component
Stars: ✭ 297 (-42.11%)
Mutual labels:  mindmap
Flextable
table farming
Stars: ✭ 288 (-43.86%)
Mutual labels:  cran
Jupytext
Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
Stars: ✭ 4,969 (+868.62%)
Mutual labels:  rmarkdown
Vue Mindmap
VueMindmap is a vue component for mindnode maps
Stars: ✭ 457 (-10.92%)
Mutual labels:  mindmap

mindr: an R package that converts markdown (.md) or rmarkdown (.Rmd) files to mind maps, and vice versa

CRAN downloads

Introduction

With 'mindr' you can draw a mind map in markdown syntax, or start a markdown document from a mind map!

mindr is an R package which converts markdown (.md) or rmarkdown (.Rmd) files to mind maps (.mm), and vice versa. Mind map files (.mm) can be opened by or imported to common mindmap software such as the desktop software 'FreeMind'and 'XMind', or the online webware 'mindmeister'. Plenty of cross-platform mindmap software suits are available (see the list).

  • If your are a user of markdown or rmarkdown or bookdown or blogdown, mindr can convert your .md or .Rmd files into mind maps easily. Furthermore, you can write a new mind map with markdown syntax and use mindr to convert it into an .mm mind map.
  • If you are a mind map user, you can export your mind map into an .mm file and use mindr to convert it into a markdown file as an outline of your new document or book.

If you don't know what is markdown, here is a demo file.

Quick start

Installation

# stable version:
install.packages("mindr")
# or development version:
devtools::install_github("pzhaonet/mindr")

Convert between mind maps, markdown files, texts and directories

From v.1.2.0, the old individual functions such as md2mm() or mm2md() are to be deprecated. A more powerful, universal function mm() takes the place as the main function of mindr.

library('mindr')
### text -> widget
input <- c("# Chapter 1", "## Section 1.1", "## Section 1.2", "# Chapter 2")
mm(from = input, type = "text", root = "mindr")

### directory -> widget
input <- paste0(.libPaths(), "/mindr")[1]
mm(from = input, type = "dir")
mm(from = input, type = "dir", widget_name = "mindrtest.html")
### directory -> mm
mm(from = input, type = "dir", to = "test.mm")
### directory -> md
mm(from = input, type = "dir", to = "test.md")
### directory -> txt
mm(from = input, type = "dir", to = "test.txt")

### Rmd -> widget
input <- system.file("examples/r/rmd2r.Rmd", package = "mindr")
mm(from = input, type = "file", root = "mindr")
### Rmd -> r
mm(from = input, type = "file", root = "mindr", to = "test.r")
### Rmd -> mm
mm(from = input, type = "file", root = "mindr", to = "test.mm")

### mm -> widget
input <- system.file("examples/mm/bookdownplus.mm", package = "mindr")
mm(from = input, type = "file", root = "mindr")
### mm -> Rmd
mm(from = input, type = "file", root = "mindr", to = "test.Rmd")
### mm -> r
mm(from = input, type = "file", root = "mindr", to = "test.r")

### r -> widget
input <- system.file("examples/r/r2rmd.R", package = "mindr")
mm(from = input, type = "file", root = "mindr")
### r -> Rmd
mm(from = input, type = "file", root = "mindr", to = "test.Rmd")
### r -> mm
mm(from = input, type = "file", root = "mindr", to = "test.mm")

### The outline of the book Learning R
input <- system.file("examples/xuer/xuer.md", package = "mindr")
mm(from = input, type = "file", root = "Learning R", to = "learningr.mm")

Create Interactive Web MindMap with the JavaScript 'markmap' Library

Run:

example(markmap)

then you will see a demo interactive mind map in the viewer of your R session.

More themes can be seen if you run:

example(markmapOption)

To create your own interactive mind map, create a folder named mm in the working directory (getwd()), and drop some .mm files into mm/. Run:

markmap()

Extract the outline from (a) markdown files

Run:

library('mindr')
example(outline)

then you will get a demo outline file outline.md in the working directory (getwd()).

To extract the outline from your own markdown files, create a folder named mm in the working directory (getwd()), and drop some markdown or rmarkdown files into mm/. Run:

outline()

Have fun!

Still being developed. Feel free to give your feedback to me!

Showcase

  • Mindmap of my book Learning R (in Chinese. to be published soon.)

Updates

New updates after 2019-01-25 are not logged here. Please see the commits.

  • 2019-01-25. v1.2.0. universal function mm().
  • 2018-12-16. v1.1.9. Added an option of 'pandoc' to extract headings.
  • 2018-11-10. v1.1.8. Adapted to the roxygen style when conversion between .R scripts and .Rmd documents.
  • 2018-10-26. v1.1.7. Conversion between .R scripts and .Rmd documents.
  • 2018-10-21. v1.1.6. Support LaTeX equations.
  • 2018-10-11. v1.1.5. Improve the support for bookdown projects. Bugs fixed.
  • 2018-09-28. v1.1.2. Display .mm mind maps. Keep hyperlinks. dir2() for creating mindmaps from folder structure.
  • 2018-04-17. v1.1.1. Support tibble dataframes.
  • 2017-07-19. v1.1.0. On CRAN. See CHANGES IN mindr VERSION 1.1.
  • 2017-07-05. v1.0.6. Rmarkmap added. Run example(markmap).
  • 2017-07-03. v1.0.5. Better backup.
  • 2017-06-19. v1.0.4. Released on CRAN!
  • 2017-06-02. v1.0.0. Backup existing files before overwritten. Submitted to CRAN.
  • 2017-05-21. v0.2.0. Rename functions.
  • 2017-05-21. v0.1.0. Bidirectional! Now mind maps can be converted to markdown.
  • 2017-05-20. v0.0.1. Can Save the outline.
  • 2017-05-19. v0.0.0. A very preliminary version.

To do

  • convert md/Rmd/mm into slides.
  • RStudio addin to convert selected text into a mindmap widget.

License

Copyright 2019 Peng Zhao.

Released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].