To Insert Title, Divider, and Block of Comments

ARTofR

Have you ever typed something like this in your R script as a section break:


 #.........................just a example.........................

ARTofR is designed to help you do this, by auto-inserting title, divider and block of comments, for example:

xxx_divider1('just a example') will give you


 #.........................just a example.........................

xxx_title2('another example') will give you


##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##                              another example                             ----
##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ARTofR is a wrapper of bannerCommenter::banner(), written with thanks to the author, Bill Venables

Installation

Install from CRAN:

install.packages('ARTofR')

Install the developing version of ARTofR:

# install.packages("devtools")
devtools::install_github("Hzhang-ouce/ARTofR")

Complete user guide:

User guide at Hzhang-ouce-ARTofR