inst/templates/vignette.R

#'---
#'title: "vignette title"
#'author: "Your Name"
#'output: rmarkdown::html_vignette
#'vignette: >
#'  %\VignetteEngine{knitr::rmarkdown}
#'  %\VignetteIndexEntry{vignette title}
#'  %\VignetteEncoding{UTF-8}
#'---

#+ label=setup, include = FALSE
library(knitr)
knitr::opts_chunk$set(collapse = TRUE)

#'
# /*
# {{{ Section 1 ----------------------------------------------------------------
# */
#'
#' # Section 1
#'
#' Text goes here
#+ label = "r-chunk-1"
2 + 2

#'
# /*
# End of Section 1 --------------------------------------------------------- }}}
# */
#'
#'
#'
# /*
# {{{ Section 2-----------------------------------------------------------------
# */
#'
#' # Section 2
#'
#'
#'
# /*
# End Section 2 ------------------------------------------------------------ }}}
# */
#'
#' # Session Info
#'
print(sessionInfo(), local = FALSE)

# /*
# ------------------------------- End of File ----------------------------------
# */

Try the qwraps2 package in your browser

Any scripts or data that you put into this service are public.

qwraps2 documentation built on Nov. 10, 2023, 1:06 a.m.