I'd like to document some R functions (not scripts) as html pages using spin(). I thought of something like:
#' Test of rmarkdown wit spin() for an html documented function
#' =======================================================
#+ eval=FALSE
test <- function(x,y)
{
#' comment 1
z <- x + y
#' comment 2
z
}
But the #+ eval=FALSE
applies to the first chunk only. Is there a way to prevent the actual execution of all chunks with on single command at the beginning?