mkdCodeChunkComplete-easyreporting-method: mkdCodeChunkComplete

Description Usage Arguments Value Examples

Description

it creates a complete code chunk.

Usage

1
2
3
4
5
6
7
## S4 method for signature 'easyreporting'
mkdCodeChunkComplete(
  object,
  code,
  optionList = getOptionsList(object),
  sourceFilesList = NULL
)

Arguments

object

an easyreporting class object

code

a string or an expression (or a list of expressions) 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

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

## End(Not run)

drighelli/easyreporting documentation built on March 22, 2021, 9:12 p.m.