pzhaonet / mindr

an R package which converts markdown files (.md, .Rmd) into mindmaps (brainstorms)
GNU General Public License v3.0
568 stars 48 forks source link

Freeplane integration #21

Open peterolejua opened 3 years ago

peterolejua commented 3 years ago

Hello,

I was trying to take a freeplane mindmap (attached) to mindr and produce an rmd that could be later used as an HTML. I failed miserably -_-

I did

library(mindr)

mm(
  from = "statistics_outbreaks.mm",
  type = "file",
  to = "test.Rmd"
  )

and got:

The mm2md() function is to be deprecated soon. Please use mm() instead.
Error in rep("#", x) : invalid 'times' argument

What -_-?

I'd like to keep the format as much as possible. The buzzan theme, background, latex formulas.

Please help! I appreciate any effort.

Thank you very much,

Peter

R version 4.1.0 (2021-05-18)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Arch Linux

Matrix products: default
BLAS:   /usr/lib/libblas.so.3.10.0
LAPACK: /usr/lib/liblapack.so.3.10.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] here_1.0.1    mindr_1.2.2.1

loaded via a namespace (and not attached):
 [1] compiler_4.1.0    prettyunits_1.1.1 remotes_2.4.0     tools_4.1.0      
 [5] testthat_3.0.2    digest_0.6.27     pkgbuild_1.2.0    pkgload_1.2.1    
 [9] jsonlite_1.7.2    evaluate_0.14     memoise_2.0.0     lifecycle_1.0.0  
[13] rlang_0.4.11      rstudioapi_0.13   cli_2.5.0         curl_4.3.1       
[17] yaml_2.2.1        xfun_0.24         fastmap_1.1.0     withr_2.4.2      
[21] knitr_1.33        desc_1.3.0        fs_1.5.0          htmlwidgets_1.5.3
[25] devtools_2.4.2    rprojroot_2.0.2   incidence_1.7.3   glue_1.4.2       
[29] distcrete_1.0.3   R6_2.5.0          processx_3.5.2    rmarkdown_2.8    
[33] sessioninfo_1.1.1 callr_3.7.0       purrr_0.3.4       magrittr_2.0.1   
[37] ps_1.6.0          ellipsis_0.3.2    htmltools_0.5.1.1 usethis_2.0.1    
[41] cachem_1.0.5      crayon_1.4.1
pzhaonet commented 3 years ago

Could you please attach your .mm file? I cannot see it. Thanks!