mkdCodeChunkSt,easyreporting-method {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

## S4 method for signature 'easyreporting'
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

## Not run: 
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)

## End(Not run)

[Package easyreporting version 1.4.0 Index]