mkdCodeChunkSt: mkdCodeChunkSt

Description Usage Arguments Value Examples

Description

it creates a code chunk start. A list of options and files to source for the chunk can optionally be passed to the function.

Usage

1
2
3
4
5
6
mkdCodeChunkSt(
  object,
  optionList = getOptionsList(object),
  sourceFilesList = NULL,
  isComplete = FALSE
)

Arguments

object

an easyreporting class object

optionList

a list of options

sourceFilesList

a list of files that can be sourced inside the code chunk.

isComplete

a flag determining if the chunk is already a complete chunk

Value

none

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
rd <- easyreporting(filenamePath="./project_report",
                        title="example_report", author=c("It's me"))
## no options
mkdCodeChunkSt(rd)
## just leaving empty
mkdCodeChunkEnd(rd)

## setting options
optList <- makeOptionsList(includeFlag=TRUE)
mkdCodeChunkSt(rd, optionList=optList)
## just leaving empty
mkdCodeChunkEnd(rd)

easyreporting documentation built on Nov. 8, 2020, 8:01 p.m.