knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
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
Install from CRAN:
install.packages('ARTofR')
Install the developing version of ARTofR:
# install.packages("devtools") devtools::install_github("Hzhang-ouce/ARTofR")
User guide at Hzhang-ouce-ARTofR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.