Brief Intro and curriculum ‘rosr’ is an R package for creating reproducible academic project with integrated various academic elements, including data, bibliography, codes, images, manuscripts, dissertations, slides and so on. These elements are well connected so that they can be easily synchronized and updated. Users don’t have to repeat copying and pasting their results and figures from time to time. It will be easy for the scientific researchers to use, even if they are R beginners, or even non-R-users.
CONTINUE READING
What is the project about? Weeks ago, I gave a short training course at one of the top institutes in the world. The course was called ‘R, Open Science and Reproducible Research’, abbreviated as ROSS. It was given to the academic researchers who were interested in R and reproducible research. The R markdown family, including ‘rticles’, ‘bookdown’, ‘xaringan’ etc., were introduced. The audience were excited in the course. They felt, however, confused after the course by using these packages on their own work.
CONTINUE READING
Most R beginners think that developing an R package is a mission impossible. It is not true. With the new function packr() , users can create a user-defined useful R packages easily. They can specify in packr()a group of packages (e.g. foo_1, foo_2, foo_x) which they often use and the new package name, say foobar, then a new package called foobar will be generated.
When loading the foobar function, the package group, i.
CONTINUE READING
The new version 1.2.0 mainly brings four exciting features.
Suggested by @yihui, an argument of ‘method’ was added to each main functions. Users can choose the method of regular expression or pandoc to pick out the outline of a markdown file. Suggested by the issue from the users, now mindr can save the mind map as an HTML widget file and share the mind map on web. A new function tree() can create a mind map from a directory on your computer.
CONTINUE READING
Introduction Since ‘rmarkdown’ and ‘knitr’, more and more members (rticles, bookdown, mindr…) have been joining the R Markdown family. Users can write elegant reproducible documents, manuscripts, dissertations, books, blog posts, posters, and slides within the framework of R markdown. It is exciting, while the installation and maintenance becomes annoying. In the meanwhile, there are plenty of useful RStudio addins, which equip the RStudio IDE as a powerful markdown editor. However, these little tools are often hidden somewhere deep in the community, and it is difficult to dig them out.
CONTINUE READING
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.
CONTINUE READING