mkdCodeChunkComplete {easyreporting}R Documentation

mkdCodeChunkComplete

Description

it creates a complete code chunk.

Usage

mkdCodeChunkComplete(
  object,
  code,
  optionList = getOptionsList(object),
  sourceFilesList = NULL
)

Arguments

object

an easyreporting class object

code

a string or an expression generated with quote containing a function call or the entire code chunk to trace.

optionList

a list of options.

sourceFilesList

a list of files to source.

Value

none

Examples

## Not run: 
 rd <- easyreporting(filenamePath="./project_report",
                        title="example_report", author=c("It's me"))
mkdCodeChunkComplete(rd, code="a <- 1\n b <- 2\n c <- a+b\n print(c)")

## End(Not run)

[Package easyreporting version 1.4.0 Index]