mkdCodeChunkSt {easyreporting} | R Documentation

## mkdCodeChunkSt

### 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

    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

    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)

[Package easyreporting version 1.2.0 Index]